v2.0.3
flutter_badged
用圖標顯示的徽章。您可以在底部選單、導航抽屜或任何您想要的地方使用它。
24喜歡 367近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
包含徽章元件的 Flutter 套件
{"sdk":"flutter"}{"sdk":"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,
)