FullWidthCard method

Widget FullWidthCard()

Implementation

Widget FullWidthCard() {
  return SizedBox(
    height: fullWidthCardHeight,
    width: fullWidthCardWidth,
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        if (media != null)
          ClipRRect(
            borderRadius: BorderRadius.vertical(
                top: Radius.circular(
                    shape == CardShape.roundedRectangle ? 8.0 : 0.0)),
            child: SizedBox(
              height: 100.0,
              width: fullWidthCardWidth,
              child: media!,
            ),
          ),
        Padding(
          padding: const EdgeInsets.all(16.0),
          child: AppTypography.title(
            title,
            TitleType.h5,
            color: textColor ?? Colors.brown,
          ),
        ),
        Padding(
          padding: const EdgeInsets.symmetric(horizontal: 16.0),
          child: AppTypography.body(
            content,
            BodySize.large,
            color: contentTextColor ?? Colors.black,
          ),
        ),
      ],
    ),
  );
}