Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 698 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 698 Bytes

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,
        )