KRCellProduct constructor
const
KRCellProduct({
- Key? key,
- String imgURL = "http://via.placeholder.com/350x150",
- required String title,
- required String subtitle,
- bool isFavorite = false,
- EdgeInsetsGeometry padding = const EdgeInsets.all(KRTheme.PADDING_NORMAL),
- int backgroundFavoriteColor = KRTheme.DEFAULT_PRIMARY_LIGHT_COLOR,
- int backgroundDiscountColor = KRTheme.DEFAULT_PRIMARY_COLOR,
- String? cartCountText,
- String? discountText,
- int textColor = KRTheme.DEFAULT_DARK_COLOR,
Implementation
const KRCellProduct({
Key? key,
this.imgURL = "http://via.placeholder.com/350x150",
required this.title,
required this.subtitle,
required this.caption,
this.isFavorite = false,
this.padding = const EdgeInsets.all(KRTheme.PADDING_NORMAL),
this.backgroundFavoriteColor = KRTheme.DEFAULT_PRIMARY_LIGHT_COLOR,
this.backgroundDiscountColor = KRTheme.DEFAULT_PRIMARY_COLOR,
this.cartCountText,
this.discountText,
this.textColor = KRTheme.DEFAULT_DARK_COLOR,
}) : super(key: key);