AnimationButton constructor

const AnimationButton({
  1. Key? key,
  2. required IconData iconTarget,
  3. Color? targetColor = Colors.black,
  4. double? targetSize = 70,
  5. required VoidCallback onChanged,
  6. IconData animatedIcon = Icons.favorite,
  7. Color? iconColor = const Color(0xFFF5F5F5),
  8. double? size = 70,
  9. Duration? duration = const Duration(milliseconds: 500),
  10. Curve curve = Curves.easeInOut,
  11. 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,
});