InstaLikeButton constructor
InstaLikeButton({
- required ImageProvider<
Object> ? image, - required VoidCallback onChanged,
- IconData icon = Icons.favorite,
- Color? iconColor = const Color(0xFFF5F5F5),
- double? height = 300,
- double? width,
- Duration? duration = const Duration(milliseconds: 500),
- Curve curve = Curves.easeInOut,
- double iconSize = 120,
- dynamic onImageError()?,
- ColorFilter? imageColorFilter,
- BoxFit? imageBoxfit,
- AlignmentGeometry imageAlignment = Alignment.center,
- 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,
});