Skip to content

Commit cb560bf

Browse files
Sandip KakadiyaSandip Kakadiya
authored andcommitted
Badge component reviewed
1 parent 42df9ce commit cb560bf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

example/lib/main.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ class _MyHomePageState extends State<MyHomePage> {
6262
@override
6363
Widget build(BuildContext context) {
6464
return Scaffold(
65-
body: Center(child: GFBadge()),
65+
body: Center(
66+
child: GFBadge(
67+
shape: GFBadgeShape.circle,
68+
color: Colors.green,
69+
text: 'dk',
70+
textColor: Colors.red,
71+
child: Icon(Icons.add),
72+
)),
6673
);
6774
}
6875
}

0 commit comments

Comments
 (0)