MUIBlogCard constructor
const
MUIBlogCard({
- Key? key,
- required String title,
- required String description,
- required VoidCallback onBlogCardPressed,
- required Image image,
- required String date,
- double avatarRad = 16,
- VoidCallback? onMoreTap,
- ButtonStyle? moreButtonStyle,
- Color bgColor = Colors.white,
- double? elevation,
- double? avatarSpacing,
- double aspectRatio = 16 / 9,
- double maxWidth = 430,
- TextStyle descriptionStyle = const TextStyle(fontSize: 16, color: Colors.grey),
- TextStyle titleStyle = const TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
- TextStyle dateStyle = const TextStyle(fontSize: 14, color: Colors.black87),
- required List<
String> circularAvatarImages,
Implementation
const MUIBlogCard({
super.key,
required this.title,
required this.description,
required this.onBlogCardPressed,
required this.image,
required this.date,
this.avatarRad = 16,
this.onMoreTap,
this.moreButtonStyle,
this.bgColor = Colors.white,
this.elevation,
this.avatarSpacing,
this.aspectRatio = 16 / 9,
this.maxWidth = 430,
this.descriptionStyle = const TextStyle(
fontSize: 16,
color: Colors.grey,
),
this.titleStyle = const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
this.dateStyle = const TextStyle(
fontSize: 14,
color: Colors.black87,
),
required this.circularAvatarImages,
});