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

favorite_button 封面
套件詳情v0.0.4

favorite_button

favorite_button 是一個 Flutter 庫,可讓您建立帶有動畫效果的心形和星形收藏按鈕。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
327
喜歡數
65
Pub 分數
150

安裝套件

flutter pub add favorite_button

套件介紹

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

favorite_button 是一個 Flutter 庫,可幫助開發者輕鬆實現帶有平滑動畫效果的心形和星形收藏按鈕。專為社群媒體和互動應用設計,透過按鈕按下時提供視覺反饋來提升使用者參與度。此套件支援 Android、iOS、Web、macOS、Windows 和 Linux 等多個平台,確保在不同裝置上行為一致。僅需 `flutter pub add favorite_button` 即可快速設定,順暢整合至現有專案中。非常適合用於點讚貼文、儲存最愛或標記重要項目等功能。

適用情境

  • 讚賞社群媒體貼文
  • 儲存最愛項目
  • 將內容標記為重要
  • 使用者偏好追蹤
  • 互動式應用元件
  • 遊戲化功能

主要特色

  • 心形和星形按鈕
  • 動畫切換效果
  • 跨平台支援
  • 簡單整合
  • 可自定外觀
  • 狀態持久化

適合對象

  • 社群媒體應用
  • 內容書籤工具
  • 使用者偏好系統
  • 互動式 UI 組件
  • 行動和網路應用
  • 以參與度驅動的設計

使用建議

  • 限於心形和星形
  • 低階裝置上的動畫效能
  • 需要手動管理狀態以實現持久化
  • 無內建資料儲存
  • 基本樣式之外的最小化自訂
  • 依賴外部來源程式碼進行更新

原始 README

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

favorite_button

Language: English

Favorite Button is a flutter library that allows you to create heart and star shaped favorite featured buttons with animation effects too.

How to use it.

the default effects is Icons.favorite

  FavoriteButton(
            valueChanged: (_) {
            },
          ),

and you can also define custom effects.

 FavoriteButton(
            valueChanged: (_isFavorite) {
              print('Is Favorite $_isFavorite)');
            },
          )

parameters

parameter description default
iconSize size of button widget 60.0
iconColor color of button widget red for heart and yellow for star button respectively
valueChanged Function that returns boolean value for current state of button This is a required parameter
isFavorite or isStarred Default state of button This is a optional parameter
                                                                                                                                                           |

more detail

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。