Skip to content

Commit 2568877

Browse files
Sandip KakadiyaSandip Kakadiya
authored andcommitted
Button component reviewed
1 parent abf5139 commit 2568877

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

example/lib/main.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import 'package:flutter/cupertino.dart';
1919
import 'package:ui_kit/size/gf_size.dart';
2020
import 'package:ui_kit/position/gf_position.dart';
2121
import 'package:ui_kit/components/tabs/gf_tabs.dart';
22+
import 'package:ui_kit/types/gf_type.dart';
2223
import 'package:ui_kit/components/slider/gf_items_slider.dart';
2324
import 'package:ui_kit/components/drawer/gf_drawer.dart';
2425
import 'package:ui_kit/components/drawer/gf_drawer_header.dart';
@@ -62,14 +63,16 @@ class _MyHomePageState extends State<MyHomePage> {
6263
Widget build(BuildContext context) {
6364
return Scaffold(
6465
body: Center(
65-
child: GFIconBadge(
66+
child: GFButton(
6667
onPressed: null,
67-
child: GFIconButton(
68-
icon: Icon(Icons.share),
69-
),
70-
counterChild: GFBadge(
68+
type: GFType.transparent,
69+
// text: 'hi',
70+
child: GFBadge(
7171
text: '12',
7272
),
73+
textColor: GFColor.primary,
74+
color: GFColor.danger,
75+
shape: GFButtonShape.square,
7376
),
7477
),
7578
);

0 commit comments

Comments
 (0)