@@ -5,10 +5,8 @@ import 'package:ui_kit/components/card/gf_card.dart';
55import 'package:ui_kit/components/header/gf_header.dart' ;
66import 'package:ui_kit/types/gf_heading_type.dart' ;
77import 'package:ui_kit/types/gf_type.dart' ;
8- import 'package:ui_kit/shape/gf_button_shape.dart' ;
98import 'package:ui_kit/size/gf_size.dart' ;
109
11-
1210class IconButtons extends StatefulWidget {
1311 @override
1412 _IconButtonsState createState () => _IconButtonsState ();
@@ -20,32 +18,35 @@ class _IconButtonsState extends State<IconButtons> {
2018 return Scaffold (
2119 appBar: AppBar (
2220 backgroundColor: getGFColor (GFColor .dark),
23- title: Text ('Icon Button' , style: TextStyle (fontSize: 14 ),),
21+ title: Text (
22+ 'Icon Button' ,
23+ style: TextStyle (fontSize: 14 ),
24+ ),
2425 ),
2526 body: ListView (
2627 children: < Widget > [
27- GFCard (
28- content: Column (
29- children: < Widget > [
30- GFHeader (
31- text: 'Solid Icon Button' ,
32- type: GFHeadingType .typo6,
33- ),
34- SizedBox (
35- height: 15.0 ,
36- ),
37- Row (
38- mainAxisAlignment: MainAxisAlignment .spaceBetween,
28+ GFCard (
29+ content: Column (
3930 children: < Widget > [
40- GFIconButton (
41- onPressed: null ,
42- icon: Icon (Icons .ac_unit),
31+ GFHeader (
32+ text: 'Solid Icon Button' ,
33+ type: GFHeadingType .typo6,
34+ ),
35+ SizedBox (
36+ height: 15.0 ,
37+ ),
38+ Row (
39+ mainAxisAlignment: MainAxisAlignment .spaceBetween,
40+ children: < Widget > [
41+ GFIconButton (
42+ onPressed: null ,
43+ icon: Icon (Icons .ac_unit),
4344// iconSize: 12.0,
4445
45- type: GFType .solid,
46- size: GFSize .large,
47- buttonBoxShadow: true ,
48- color: GFColor .primary,
46+ type: GFType .solid,
47+ size: GFSize .large,
48+ buttonBoxShadow: true ,
49+ color: GFColor .primary,
4950// boxShadow: BoxShadow(
5051// color: Colors.pink,
5152// blurRadius: 2.0,
@@ -54,16 +55,16 @@ class _IconButtonsState extends State<IconButtons> {
5455// ),
5556// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
5657// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
57- ),
58- GFIconButton (
59- onPressed: null ,
60- icon: Icon (Icons .ac_unit),
58+ ),
59+ GFIconButton (
60+ onPressed: null ,
61+ icon: Icon (Icons .ac_unit),
6162// iconSize: 12.0,
6263
63- type: GFType .solid,
64- size: GFSize .medium,
64+ type: GFType .solid,
65+ size: GFSize .medium,
6566
66- color: GFColor .warning,
67+ color: GFColor .warning,
6768// boxShadow: BoxShadow(
6869// color: Colors.pink,
6970// blurRadius: 2.0,
@@ -72,16 +73,16 @@ class _IconButtonsState extends State<IconButtons> {
7273// ),
7374// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
7475// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
75- ),
76- GFIconButton (
77- onPressed: null ,
78- icon: Icon (Icons .ac_unit),
76+ ),
77+ GFIconButton (
78+ onPressed: null ,
79+ icon: Icon (Icons .ac_unit),
7980// iconSize: 12.0,
8081
81- type: GFType .solid,
82- size: GFSize .small,
83- buttonBoxShadow: true ,
84- color: GFColor .success,
82+ type: GFType .solid,
83+ size: GFSize .small,
84+ buttonBoxShadow: true ,
85+ color: GFColor .success,
8586// boxShadow: BoxShadow(
8687// color: Colors.pink,
8788// blurRadius: 2.0,
@@ -90,22 +91,19 @@ class _IconButtonsState extends State<IconButtons> {
9091// ),
9192// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
9293// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
93- ),
94-
94+ ),
95+ ],
96+ )
9597 ],
96- )
97- ],
98+ ),
9899 ),
99- ),
100-
101100 GFCard (
102101 content: Column (
103102 children: < Widget > [
104103 GFHeader (
105104 text: 'Outline Icon Button' ,
106105 type: GFHeadingType .typo6,
107106 ),
108-
109107 SizedBox (
110108 height: 15.0 ,
111109 ),
@@ -120,7 +118,6 @@ class _IconButtonsState extends State<IconButtons> {
120118 type: GFType .outline,
121119 size: GFSize .large,
122120
123-
124121// boxShadow: BoxShadow(
125122// color: Colors.pink,
126123// blurRadius: 2.0,
@@ -135,9 +132,8 @@ class _IconButtonsState extends State<IconButtons> {
135132 icon: Icon (Icons .ac_unit),
136133// iconSize: 12.0,
137134
138-
139135 size: GFSize .medium,
140- type: GFType .outline,
136+ type: GFType .outline,
141137// boxShadow: BoxShadow(
142138// color: Colors.pink,
143139// blurRadius: 2.0,
@@ -155,7 +151,6 @@ type: GFType.outline,
155151 type: GFType .outline,
156152 size: GFSize .small,
157153
158-
159154// boxShadow: BoxShadow(
160155// color: Colors.pink,
161156// blurRadius: 2.0,
@@ -165,14 +160,11 @@ type: GFType.outline,
165160// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
166161// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
167162 ),
168-
169163 ],
170164 )
171165 ],
172166 ),
173167 ),
174-
175-
176168 GFCard (
177169 content: Column (
178170 children: < Widget > [
@@ -194,7 +186,6 @@ type: GFType.outline,
194186 type: GFType .transparent,
195187 size: GFSize .large,
196188
197-
198189// boxShadow: BoxShadow(
199190// color: Colors.pink,
200191// blurRadius: 2.0,
@@ -209,7 +200,6 @@ type: GFType.outline,
209200 icon: Icon (Icons .ac_unit),
210201// iconSize: 12.0,
211202
212-
213203 size: GFSize .medium,
214204 type: GFType .transparent,
215205// boxShadow: BoxShadow(
@@ -229,7 +219,6 @@ type: GFType.outline,
229219 type: GFType .transparent,
230220 size: GFSize .small,
231221
232-
233222// boxShadow: BoxShadow(
234223// color: Colors.pink,
235224// blurRadius: 2.0,
@@ -239,7 +228,6 @@ type: GFType.outline,
239228// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
240229// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
241230 ),
242-
243231 ],
244232 )
245233 ],
0 commit comments