InstaLikeButton constructor

InstaLikeButton({
  1. required ImageProvider<Object>? image,
  2. required VoidCallback onChanged,
  3. IconData icon = Icons.favorite,
  4. Color? iconColor = const Color(0xFFF5F5F5),
  5. double? height = 300,
  6. double? width,
  7. Duration? duration = const Duration(milliseconds: 500),
  8. Curve curve = Curves.easeInOut,
  9. double iconSize = 120,
  10. dynamic onImageError(
    1. Object,
    2. StackTrace?
    )?,
  11. ColorFilter? imageColorFilter,
  12. BoxFit? imageBoxfit,
  13. AlignmentGeometry imageAlignment = Alignment.center,
  14. double imageScale = 1.0,
})

Implementation

InstaLikeButton({
  required this.image,
  required this.onChanged,

  ///
  this.icon = Icons.favorite,
  this.iconColor = const Color(0xFFF5F5F5),
  this.height = 300,
  this.width,
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.easeInOut,
  this.iconSize = 120,
  this.onImageError,
  this.imageColorFilter,
  this.imageBoxfit,
  this.imageAlignment = Alignment.center,
  this.imageScale = 1.0,
});