BounceWidget constructor

BounceWidget({
  1. Key? key,
  2. Color inavtiveColor = Colors.grey,
  3. Color activeColor = Colors.red,
  4. double inactiveSize = 40,
  5. double activeSize = 50,
  6. IconData activeIcon = Icons.favorite,
  7. IconData inactiveIcon = Icons.favorite_border,
  8. Curve curve = Curves.bounceIn,
  9. Duration duration = const Duration(milliseconds: 1000),
  10. required Function onTap,
})

Implementation

BounceWidget({
  Key? key,
  this.inavtiveColor = Colors.grey,
  this.activeColor = Colors.red,
  this.inactiveSize = 40,
  this.activeSize = 50,
  this.activeIcon = Icons.favorite,
  this.inactiveIcon = Icons.favorite_border,
  this.curve = Curves.bounceIn,
  this.duration = const Duration(milliseconds: 1000),
  required this.onTap,
}) : super(key: key);