MUIBlogCard constructor

const MUIBlogCard({
  1. Key? key,
  2. required String title,
  3. required String description,
  4. required VoidCallback onBlogCardPressed,
  5. required Image image,
  6. required String date,
  7. double avatarRad = 16,
  8. VoidCallback? onMoreTap,
  9. ButtonStyle? moreButtonStyle,
  10. Color bgColor = Colors.white,
  11. double? elevation,
  12. double? avatarSpacing,
  13. double aspectRatio = 16 / 9,
  14. double maxWidth = 430,
  15. TextStyle descriptionStyle = const TextStyle(fontSize: 16, color: Colors.grey),
  16. TextStyle titleStyle = const TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
  17. TextStyle dateStyle = const TextStyle(fontSize: 14, color: Colors.black87),
  18. 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,
});