DoubleTapLikeWidget constructor

const DoubleTapLikeWidget({
  1. Key? key,
  2. required VoidCallback onLike,
  3. required Widget child,
  4. required Widget likeWidget,
  5. Duration translateDuration = const Duration(milliseconds: 2400),
  6. Duration animationDuration = const Duration(milliseconds: 900),
  7. Curve curve = Curves.easeInOutCubic,
  8. double likeWidth = 200,
  9. 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.curve = Curves.easeInOutCubic,
  this.likeWidth = 200,
  this.likeHeight = 200,
});