tiktok_double_tap_like
カスタマイズ可能なハートアイコンとアニメーションを備えた、TikTok風のダブルタップでいいねするアニメーションを提供するFlutterパッケージです。
MohamadGreatWarrior/tiktok_double_tap_like open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

TikTok Double Tap Like
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.
DoubleTapLikeWidget(
onLike: (likeCount) {
//Do something when the user double taps
},
likeWidget: const Image(image: AssetImage('assets/icons/heart.png')),
likeWidth: 200,
likeHeight: 200,
child: VideoPlayer(),
)
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.
You have the likeCount param in onLike in case you want to know how many times the user has liked the video.
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.
依存関係一覧 3 件
{"sdk":"flutter"}{"sdk":"flutter"}^3.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗