AdvancedCard class

Inheritance

Constructors

AdvancedCard.new({Key? key, double? width, double? height, bool fullWidth = false, bool fullHeight = false, Color? backgroundColor, double? borderRadius, BorderRadiusGeometry? customBorderRadius, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? borderWidth, Color? borderColor, bool hasShadow = true, Color? shadowColor, double? shadowBlur, double? shadowSpread, Offset? shadowOffSet, List<BoxShadow>? customShadows, VoidCallback? onTap, VoidCallback? onLongPress, bool enableHover = true, dynamic cardImage, ImagePosition imagePosition = ImagePosition.top, ImageRatio imageRatio = ImageRatio.half, double? customImageWidth, double? customImageHeight, double? imageBorderRadius, BoxFit imageFit = BoxFit.cover, bool showLikeIcon = false, OverlayPosition likeIconPosition = OverlayPosition.topRight, IconData likeIcon = Icons.favorite, Color? likeIconColor, double likeIconSize = 24.0, bool isLiked = false, VoidCallback? onLikeTap, bool showBookmarkIcon = false, OverlayPosition bookmarkIconPosition = OverlayPosition.topLeft, IconData bookmarkIcon = Icons.bookmark, Color? bookmarkIconColor, double bookmarkIconSize = 24.0, bool isBookmarked = false, VoidCallback? onBookmarkTap, List<StatusChip>? statusChips, String? title, double? titleFontSize, FontWeight? titleFontWeight, Color? titleColor, String? titleFontFamily, ContentAlignment titleAlignment = ContentAlignment.left, int? titleMaxLines, TextOverflow? titleOverflow, String? description, double? descriptionFontSize, FontWeight? descriptionFontWeight, Color? descriptionColor, String? descriptionFontFamily, ContentAlignment descriptionAlignment = ContentAlignment.left, int? descriptionMaxLines, TextOverflow? descriptionOverflow, double? rating, int maxRating = 5, double ratingStarSize = 16.0, Color? ratingFilledColor, Color? ratingEmptyColor, bool showRatingNumber = true, String? customRatingText, ValueChanged<double>? onRatingChanged, List<String>? chips, ContentChipPosition chipPosition = ContentChipPosition.afterTitle, Color? chipBackgroundColor, Color? chipTextColor, double? chipFontSize, FontWeight? chipFontWeight, double? chipBorderRadius, VoidCallback? onChipTap, List<ContentChip>? customChips, List<MetricItem>? metrics, int metricsColumns = 3, double metricsSpacing = 16.0, bool showMetricsDividers = false, Color? metricsBackgroundColor, List<IconTextPair>? iconTextPairs, String? price, double? priceFontSize, FontWeight? priceFontWeight, Color? priceColor, ContentAlignment priceAlignment = ContentAlignment.left, double contentSpacing = 8.0, String? buttonText, IconData? buttonIcon, bool buttonIconOnRight = false, CardButtonStyle buttonStyle = CardButtonStyle.elevated, ButtonPosition buttonPosition = ButtonPosition.fullWidth, Color? buttonBackgroundColor, Color? buttonTextColor, Color? buttonBorderColor, double buttonBorderWidth = 1.5, double? buttonFontSize, FontWeight? buttonFontWeight, EdgeInsetsGeometry? buttonPadding, double? buttonBorderRadius, double? buttonWidth, double? buttonHeight, double buttonIconSize = 20.0, double buttonIconTextSpacing = 8.0, double buttonElevation = 2.0, Color? buttonHoverColor, bool buttonIsLoading = false, bool buttonIsDisabled = false, VoidCallback? onButtonPressed, CardButton? secondaryButton, List<CardButton>? buttons, double buttonSpacing = 12.0, Axis buttonDirection = Axis.horizontal, MainAxisAlignment buttonAlignment = MainAxisAlignment.center, Widget? child})
const

Properties

backgroundColor Color?
final
bookmarkIcon IconData
final
bookmarkIconColor Color?
final
bookmarkIconPosition OverlayPosition
final
bookmarkIconSize double
final
borderColor Color?
final
borderRadius double?
final
borderWidth double?
final
buttonAlignment MainAxisAlignment
final
buttonBackgroundColor Color?
final
buttonBorderColor Color?
final
buttonBorderRadius double?
final
buttonBorderWidth double
final
buttonDirection Axis
final
buttonElevation double
final
buttonFontSize double?
final
buttonFontWeight FontWeight?
final
buttonHeight double?
final
buttonHoverColor Color?
final
buttonIcon IconData?
final
buttonIconOnRight bool
final
buttonIconSize double
final
buttonIconTextSpacing double
final
buttonIsDisabled bool
final
buttonIsLoading bool
final
buttonPadding EdgeInsetsGeometry?
final
buttonPosition ButtonPosition
final
buttons List<CardButton>?
final
buttonSpacing double
final
buttonStyle CardButtonStyle
final
buttonText String?
final
buttonTextColor Color?
final
buttonWidth double?
final
cardImage → dynamic
final
child Widget?
The main content inside the card
final
chipBackgroundColor Color?
final
chipBorderRadius double?
final
chipFontSize double?
final
chipFontWeight FontWeight?
final
chipPosition ContentChipPosition
final
chips List<String>?
Content chips
final
chipTextColor Color?
final
contentSpacing double
final
customBorderRadius BorderRadiusGeometry?
final
customChips List<ContentChip>?
Custom content chips (more advanced)
final
customImageHeight double?
final
customImageWidth double?
final
customRatingText String?
final
customShadows List<BoxShadow>?
final
description String?
Card description/subtitle
final
descriptionAlignment ContentAlignment
final
descriptionColor Color?
final
descriptionFontFamily String?
final
descriptionFontSize double?
Description styling
final
descriptionFontWeight FontWeight?
final
descriptionMaxLines int?
final
descriptionOverflow TextOverflow?
final
enableHover bool
final
fullHeight bool
final
fullWidth bool
final
hashCode int
The hash code for this object.
no setterinherited
hasShadow bool
final
height double?
final
iconTextPairs List<IconTextPair>?
Icon-text pairs (like bed, bath, parking icons)
final
imageBorderRadius double?
final
imageFit BoxFit
final
imagePosition ImagePosition
final
imageRatio ImageRatio
final
isBookmarked bool
final
isLiked bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
likeIcon IconData
final
likeIconColor Color?
final
likeIconPosition OverlayPosition
final
likeIconSize double
final
margin EdgeInsetsGeometry?
final
maxRating int
final
metrics List<MetricItem>?
Metrics grid
final
metricsBackgroundColor Color?
final
metricsColumns int
final
metricsSpacing double
final
onBookmarkTap VoidCallback?
final
onButtonPressed VoidCallback?
final
onChipTap VoidCallback?
final
onLikeTap VoidCallback?
final
onLongPress VoidCallback?
final
onRatingChanged ValueChanged<double>?
final
onTap VoidCallback?
final
padding EdgeInsetsGeometry?
final
price String?
Price display
final
priceAlignment ContentAlignment
final
priceColor Color?
final
priceFontSize double?
final
priceFontWeight FontWeight?
final
rating double?
Rating system
final
ratingEmptyColor Color?
final
ratingFilledColor Color?
final
ratingStarSize double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryButton CardButton?
final
shadowBlur double?
final
shadowColor Color?
final
shadowOffSet Offset?
final
shadowSpread double?
final
showBookmarkIcon bool
final
showLikeIcon bool
final
showMetricsDividers bool
final
showRatingNumber bool
final
statusChips List<StatusChip>?
final
title String?
final
titleAlignment ContentAlignment
final
titleColor Color?
final
titleFontFamily String?
final
titleFontSize double?
Title styling
final
titleFontWeight FontWeight?
final
titleMaxLines int?
final
titleOverflow TextOverflow?
final
width double?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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