KinGradientCard constructor

const KinGradientCard({
  1. Key? key,
  2. required String title,
  3. required List<Color> gradient,
  4. String? subtitle,
  5. String? category,
  6. IconData? categoryIcon,
  7. IconData? centerIcon,
  8. double? rating,
  9. String? reviews,
  10. bool showFavorite = true,
  11. bool isFavorite = false,
  12. VoidCallback? onFavoriteTap,
  13. VoidCallback? onTap,
  14. double borderRadius = 28,
  15. bool compact = false,
})

Implementation

const KinGradientCard({
  super.key,
  required this.title,
  required this.gradient,
  this.subtitle,
  this.category,
  this.categoryIcon,
  this.centerIcon,
  this.rating,
  this.reviews,
  this.showFavorite = true,
  this.isFavorite = false,
  this.onFavoriteTap,
  this.onTap,
  this.borderRadius = 28,
  this.compact = false,
});