MUIBlogCard class

Inheritance

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 setterinherited
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.
finalinherited
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 setterinherited
title String
Title of Blog Card
final
titleStyle TextStyle
Used to specify the style of the title
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MUIBlogCard>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited