DoubleTapLikeWidget constructor

const DoubleTapLikeWidget({
  1. Key? key,
  2. required ValueChanged<int> onLike,
  3. required Widget child,
  4. required Widget likeWidget,
  5. Duration translateDuration = const Duration(milliseconds: 2400),
  6. Duration animationDuration = const Duration(milliseconds: 900),
  7. Duration resetDuration = const Duration(milliseconds: 1500),
  8. Curve curve = Curves.easeInOutCubic,
  9. double likeWidth = 200,
  10. double likeHeight = 200,
})

Implementation

const DoubleTapLikeWidget({
  super.key,
  required this.onLike,
  required this.child,
  required this.likeWidget,
  this.translateDuration = const Duration(milliseconds: 2400),
  this.animationDuration = const Duration(milliseconds: 900),
  this.resetDuration = const Duration(milliseconds: 1500),
  this.curve = Curves.easeInOutCubic,
  this.likeWidth = 200,
  this.likeHeight = 200,
});