LeanCard method

Widget LeanCard()

Implementation

Widget LeanCard() {
  return SizedBox(
    height: leanCardHeight,
    width: leanCardWidth,
    child: Row(
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        Expanded(
          child: Padding(
            padding: const EdgeInsets.only(left: 20.0, top: 5.0, bottom: 5.0),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                AppTypography.title(
                  title,
                  TitleType.h6,
                  color: textColor ?? Colors.brown,
                  maxLines: 1,
                ),
                SizedBox(height: 0.5),
                AppTypography.body(
                  content,
                  BodySize.small,
                  color: contentTextColor ?? Colors.black,
                  maxLines: 1,
                ),
              ],
            ),
          ),
        ),
        if (media != null)
          Padding(
            padding: const EdgeInsets.only(
                left: 1.0, right: 18.0, top: 10.0, bottom: 10.0),
            child: Container(
              height: 42.0,
              width: 42.0,
              child: FittedBox(
                fit: BoxFit.cover,
                child: SizedBox(
                  width: 42.0,
                  height: 42.0,
                  child: media!,
                ),
              ),
            ),
          ),
      ],
    ),
  );
}