v2.0.3
flutter_badged
用圖標顯示的徽章。您可以在底部選單、導航抽屜或任何您想要的地方使用它。
24喜歡 347近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
包含徽章元件的 Flutter 套件
以下為英文專案原文快照,最新內容請造訪 GitHub。
Badge for showing with icon
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,
)
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗