AnimationButton constructor
const
AnimationButton({
- Key? key,
- required IconData iconTarget,
- Color? targetColor = Colors.black,
- double? targetSize = 70,
- required VoidCallback onChanged,
- IconData animatedIcon = Icons.favorite,
- Color? iconColor = const Color(0xFFF5F5F5),
- double? size = 70,
- Duration? duration = const Duration(milliseconds: 500),
- Curve curve = Curves.easeInOut,
- double iconSize = 120,
Implementation
const AnimationButton({super.key,
required this.iconTarget,
this.targetColor = Colors.black,
this.targetSize = 70,
required this.onChanged,
this.animatedIcon = Icons.favorite,
this.iconColor = const Color(0xFFF5F5F5),
this.size = 70,
this.duration = const Duration(milliseconds: 500),
this.curve = Curves.easeInOut,
this.iconSize = 120,
});