UiProductCard constructor
const
UiProductCard({
- Key? key,
- required String imageUrl,
- required String title,
- required String price,
- String? subtitle,
- VoidCallback? onTap,
- VoidCallback? onAction,
- String actionLabel = 'Buy',
- EdgeInsetsGeometry? padding,
- double borderRadius = 12.0,
- Color? backgroundColor,
- bool isHorizontal = false,
Implementation
const UiProductCard({
super.key,
required this.imageUrl,
required this.title,
required this.price,
this.subtitle,
this.onTap,
this.onAction,
this.actionLabel = 'Buy',
this.padding,
this.borderRadius = 12.0,
this.backgroundColor,
this.isHorizontal = false,
});