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

套件詳情v2.0.3

flutter_badged

用圖標顯示的徽章。您可以在底部選單、導航抽屜或任何您想要的地方使用它。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
352
喜歡數
24
Pub 分數
150

安裝套件

flutter pub add flutter_badged

套件介紹

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

一個用於顯示帶圖示徽章的 Flutter 套件,非常適合強調通知或狀態指示器。支援多種配置位置,例如底部導航選單、導航抽屜或任何自訂 UI 結構。徽章可自訂,並可在所有主要平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)上運作。設計簡潔且易於整合,能透過視覺反饋提升使用者介面元件。

適用情境

  • 顯示通知數量
  • 突出顯示導航中的活動項目
  • 指示未讀訊息
  • 自定義UI增強
  • 顯示狀態指示器
  • 增強底部應用欄

主要特色

  • 基於圖示的徽章渲染
  • 跨平台相容性
  • 靈活定位
  • 可自定外觀
  • 與現有小部件的輕鬆整合
  • 支援多個平台

適合對象

  • 行動應用開發者
  • 尋求視覺反饋的UI設計師
  • 具有導航抽屜或底部標籤的應用
  • 需要輕量級徽章組件的項目
  • 針對多個平台的開發者

使用建議

  • 僅限基於圖示的徽章
  • 無內建動畫支援
  • 需要手動樣式設定以實現高階設計
  • 不適合複雜的徽章內容
  • 依賴外部倉庫進行更新
  • 最基本的使用之外的最小文件

原始 README

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

flutter_badged

Badge for showing with icon

How to use

This widget can be used anywhere, but example will be with bottom navigation.

Different cases of usage:

FlutterBadge(
          icon: Icon(Icons.message),
          borderRadius: 20.0,
          itemCount: 3,
        )
FlutterBadge(
          icon: Image.asset("assets/ic_message.png"),
          hideZeroCount: false,
          badgeColor: Colors.greenAccent,
          itemCount: 15,
        )
FlutterBadge(
          icon: Icon(Icons.home),
          badgeColor: Colors.greenAccent,
          badgeTextColor: Colors.red,
          position: BadgePosition.bottomLeft(),
          itemCount: 231,
        )

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。