DoubleTapLikeWidget constructor
const
DoubleTapLikeWidget({
- Key? key,
- required ValueChanged<
int> onLike, - required Widget child,
- required Widget likeWidget,
- Duration translateDuration = const Duration(milliseconds: 2400),
- Duration animationDuration = const Duration(milliseconds: 900),
- Duration resetDuration = const Duration(milliseconds: 1500),
- Curve curve = Curves.easeInOutCubic,
- double likeWidth = 200,
- 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,
});