UiProductCard constructor

const UiProductCard({
  1. Key? key,
  2. required String imageUrl,
  3. required String title,
  4. required String price,
  5. String? subtitle,
  6. VoidCallback? onTap,
  7. VoidCallback? onAction,
  8. String actionLabel = 'Buy',
  9. EdgeInsetsGeometry? padding,
  10. double borderRadius = 12.0,
  11. Color? backgroundColor,
  12. 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,
});