CardImage constructor
const
CardImage({
- Key? key,
- required dynamic image,
- ImagePosition position = ImagePosition.top,
- ImageRatio ratio = ImageRatio.half,
- double? customWidth,
- double? customHeight,
- double? imageBorderRadius,
- BorderRadiusGeometry? customImageBorderRadius,
- BoxFit fit = 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,
Implementation
const CardImage({
Key? key,
required this.image,
this.position = ImagePosition.top,
this.ratio = ImageRatio.half,
this.customWidth,
this.customHeight,
this.imageBorderRadius,
this.customImageBorderRadius,
this.fit = BoxFit.cover,
// Like icon
this.showLikeIcon = false,
this.likeIconPosition = OverlayPosition.topRight,
this.likeIcon = Icons.favorite,
this.likeIconColor,
this.likeIconSize = 24.0,
this.isLiked = false,
this.onLikeTap,
// Bookmark icon
this.showBookmarkIcon = false,
this.bookmarkIconPosition = OverlayPosition.topLeft,
this.bookmarkIcon = Icons.bookmark,
this.bookmarkIconColor,
this.bookmarkIconSize = 24.0,
this.isBookmarked = false,
this.onBookmarkTap,
this.statusChips,
}) : super(key: key);