HorizontalCard method
Implementation
Widget HorizontalCard() {
return SizedBox(
height: horizontalCardHeight,
width: horizontalCardWidth,
child: Row(
children: [
if (media != null)
Padding(
padding: const EdgeInsets.all(16.0),
child: Container(
height: 111.0,
width: 120.0,
child: FittedBox(
fit: BoxFit.cover,
child: SizedBox(
width: 120.0,
height: 111.0,
child: media!,
),
),
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppTypography.title(
title,
TitleType.h5,
color: textColor ?? Colors.brown,
),
SizedBox(height: 8.0),
AppTypography.body(
content,
BodySize.large,
color: contentTextColor ?? Colors.black,
),
],
),
),
),
],
),
);
}