tiktok_double_tap_like
사용자 정의 가능한 하트 아이콘과 애니메이션을 갖춘 TikTok처럼 두 번 탭하여 좋아요를 표시하는 애니메이션을 제공하는 플러터 패키지입니다.
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 ↗