Skip to content

Commit db2d320

Browse files
Sandip KakadiyaSandip Kakadiya
authored andcommitted
Button Badge component reviewed
1 parent cb560bf commit db2d320

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

example/lib/main.dart

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,21 @@ class MyHomePage extends StatefulWidget {
5858
}
5959

6060
class _MyHomePageState extends State<MyHomePage> {
61-
bool switchValue = true;
6261
@override
6362
Widget build(BuildContext context) {
6463
return Scaffold(
6564
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-
)),
65+
child: GFButtonBadge(
66+
color: GFColor.light,
67+
text: 'hi',
68+
onPressed: null,
69+
counterChild: GFBadge(
70+
text: '12',
71+
color: GFColor.warning,
72+
),
73+
position: GFPosition.start,
74+
),
75+
),
7376
);
7477
}
7578
}

0 commit comments

Comments
 (0)