tiktok_double_tap_like 1.0.0+1 copy "tiktok_double_tap_like: ^1.0.0+1" to clipboard
tiktok_double_tap_like: ^1.0.0+1 copied to clipboard

Tiktok double tap like animation

tiktok_double_tap_like

TikTok Double Tap Like

About #

TikTok Double Tap Like is a Flutter package that provides a widget that can be used to like a video by double tapping on it, just like TikTok.

Example #

tiktok_double_tap_like

DoubleTapLikeWidget(
      onLike: () {
        //Do something when the user double taps
      },
      likeWidget: const Image(image: AssetImage('assets/icons/heart.png')),
      likeWidth: 200,
      likeHeight: 200,
      child: VideoPlayer(),
    )

Notes #

  • You have to provide a widget that will be displayed when the user double taps on the screen, whether Text, Icon...etc. You can use the likeWidget property to provide that widget.
  • You can also provide the width and height of the widget using the likeWidth and likeHeight properties. The default values are 200 each.
  • It's pretty efficient and performant, I've created the animation explicitly using AnimationController, Animation, Tween and AnimatedBuilder. Also, there's an applied mechanism to removing the added hearts off of the screen.

Help me #

If you like this package you can support me on

Buy Me A Coffee

34
likes
140
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Tiktok double tap like animation

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tiktok_double_tap_like