KRCellProductFresh constructor
const
KRCellProductFresh({
- Key? key,
- String imgURL = "http://via.placeholder.com/350x150",
- required String title,
- required String subtitle,
- required List<
String> freshImages, - 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 KRCellProductFresh({
Key? key,
this.imgURL = "http://via.placeholder.com/350x150",
required this.title,
required this.subtitle,
required this.caption,
required this.freshImages,
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);