VerticalCard method
Implementation
Widget VerticalCard() {
return SizedBox(
height: verticalCardHeight,
width: verticalCardWidth,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (media != null)
Padding(
padding: const EdgeInsets.all(10.0),
child: Container(
height: 103.0,
width: (verticalCardWidth ?? 182.0) - 24.0,
child: FittedBox(
fit: BoxFit.cover,
child: SizedBox(
width: (verticalCardWidth ?? 182.0) - 24.0,
height: 103.0,
child: media!,
),
),
),
),
Padding(
padding: const EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 0),
child: AppTypography.title(
title,
TitleType.h5,
color: textColor ?? Colors.brown,
maxLines: 1,
),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 10.0),
child: AppTypography.body(
content,
BodySize.large,
color: contentTextColor ?? Colors.black,
maxLines: 2,
),
),
],
),
);
}