MUIBlogCard class
Constructors
MUIBlogCard.new ({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 })
const
Properties
aspectRatio
→ double
AspectRatio of Image to be shown
final
avatarRad
→ double
Sets the radius of the circular avatar
final
avatarSpacing
→ double ?
Sets the spacing between circular avatars
final
bgColor
→ Color
Background color of card
final
circularAvatarImages
→ List <String >
Used to provide a list of image links for circular avatars that will be displayed on the blog card. Each
image link in the list should be of type String
.
final
date
→ String
Date Text of Blog Card
final
dateStyle
→ TextStyle
Used to specify the style of the date
final
description
→ String
final
descriptionStyle
→ TextStyle
Used to specify the style of the description
final
elevation
→ double ?
Sets the elevation of the MUIBlogCard
final
hashCode
→ int
The hash code for this object.
no setter inherited
image
→ Image
Used as the link to the image that will be
displayed on the blog card.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
maxWidth
→ double
max width of the card, width of the card can not exceed this value
If the screen width is less than this value then the widget will be responsive to the screen size
Else if screen width is greater than this maxWidth then the widget width will be equal to maxWidth
final
moreButtonStyle
→ ButtonStyle ?
Used to specify the style of the "More"
button on the blog card. If no value is provided, the default button style will be used.
final
onBlogCardPressed
→ VoidCallback
Used as the callback function when the blog card is tapped with no arguments and returns void.
final
onMoreTap
→ VoidCallback ?
Used as the callback function when the "More"
button on the blog card is tapped. If no value is provided, the "More" button will not be
displayed.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
title
→ String
Title of Blog Card
final
titleStyle
→ TextStyle
Used to specify the style of the title
final