CardLayoutBuilder class
Helper class for building card layouts with images
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildCardContent(
{Widget? child, EdgeInsetsGeometry? padding, 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, 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}) → Widget -
buildLayoutWithImage(
{required Widget contentWidget, EdgeInsetsGeometry? padding, 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}) → Widget - Build layout with image if provided