Skip to content

Commit abf5139

Browse files
Sandip KakadiyaSandip Kakadiya
authored andcommitted
Icon Badge component reviewed
1 parent db2d320 commit abf5139

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

example/lib/main.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,14 @@ class _MyHomePageState extends State<MyHomePage> {
6262
Widget build(BuildContext context) {
6363
return Scaffold(
6464
body: Center(
65-
child: GFButtonBadge(
66-
color: GFColor.light,
67-
text: 'hi',
65+
child: GFIconBadge(
6866
onPressed: null,
67+
child: GFIconButton(
68+
icon: Icon(Icons.share),
69+
),
6970
counterChild: GFBadge(
7071
text: '12',
71-
color: GFColor.warning,
7272
),
73-
position: GFPosition.start,
7473
),
7574
),
7675
);

0 commit comments

Comments
 (0)