搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.5+2

tiktok_double_tap_like

一個 Flutter 套件,提供類似 TikTok 的雙擊讚賞動畫,並附帶可自訂的心形圖示與動畫。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
4
喜歡數
37
Pub 分數
140

安裝套件

flutter pub add tiktok_double_tap_like

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,可複製 TikTok 的雙擊讚功能,並搭配流暢且可自訂的心形動畫。它允許開發者整合響應式雙擊手勢,觸發心形圖示動畫,進而提升社群媒體應用的使用者參與度。此套件支援自訂心形圖示與動畫風格,讓您輕鬆符合應用美學。相容於 Android、iOS、Web、macOS、Windows 與 Linux,非常適合尋求互動式回饋機制的內容驅動平台。

適用情境

  • 社群媒體應用
  • 影片分享平台
  • 內容發現介面
  • 使用者參與功能
  • 互動敘事應用

主要特色

  • 雙擊以讚嘆手勢
  • 可自訂的心形動畫
  • 對多個平台的支援
  • 可設定的動畫速度
  • 與現有使用者介面的輕鬆整合
  • 心形圖示自訂

適合對象

  • 開發影片中心應用的開發者
  • 希望擁有類似TikTok互動功能的團隊
  • 專注於使用者參與的應用程式
  • 跨平台社交功能
  • 尋求動畫反饋的UI設計師

使用建議

  • 可能需要手勢檢測器優化
  • 低階設備上的動畫效能
  • 與其他輕觸手勢的潛在重疊
  • 僅限讚功能
  • 需要仔細處理快速雙擊

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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: (likeCount) {
        //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.

  • 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.

Help me

If you like this package you can support me on

Buy Me A Coffee

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。