We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb560bf commit db2d320Copy full SHA for db2d320
1 file changed
example/lib/main.dart
@@ -58,18 +58,21 @@ class MyHomePage extends StatefulWidget {
58
}
59
60
class _MyHomePageState extends State<MyHomePage> {
61
- bool switchValue = true;
62
@override
63
Widget build(BuildContext context) {
64
return Scaffold(
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
- )),
+ child: GFButtonBadge(
+ color: GFColor.light,
+ text: 'hi',
+ onPressed: null,
+ counterChild: GFBadge(
+ text: '12',
+ color: GFColor.warning,
+ ),
73
+ position: GFPosition.start,
74
75
76
);
77
78
0 commit comments