@@ -5,10 +5,8 @@ import 'package:ui_kit/components/card/gf_card.dart';
5
5
import 'package:ui_kit/components/header/gf_header.dart' ;
6
6
import 'package:ui_kit/types/gf_heading_type.dart' ;
7
7
import 'package:ui_kit/types/gf_type.dart' ;
8
- import 'package:ui_kit/shape/gf_button_shape.dart' ;
9
8
import 'package:ui_kit/size/gf_size.dart' ;
10
9
11
-
12
10
class IconButtons extends StatefulWidget {
13
11
@override
14
12
_IconButtonsState createState () => _IconButtonsState ();
@@ -20,32 +18,35 @@ class _IconButtonsState extends State<IconButtons> {
20
18
return Scaffold (
21
19
appBar: AppBar (
22
20
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
+ ),
24
25
),
25
26
body: ListView (
26
27
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 (
39
30
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),
43
44
// iconSize: 12.0,
44
45
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,
49
50
// boxShadow: BoxShadow(
50
51
// color: Colors.pink,
51
52
// blurRadius: 2.0,
@@ -54,16 +55,16 @@ class _IconButtonsState extends State<IconButtons> {
54
55
// ),
55
56
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
56
57
// 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),
61
62
// iconSize: 12.0,
62
63
63
- type: GFType .solid,
64
- size: GFSize .medium,
64
+ type: GFType .solid,
65
+ size: GFSize .medium,
65
66
66
- color: GFColor .warning,
67
+ color: GFColor .warning,
67
68
// boxShadow: BoxShadow(
68
69
// color: Colors.pink,
69
70
// blurRadius: 2.0,
@@ -72,16 +73,16 @@ class _IconButtonsState extends State<IconButtons> {
72
73
// ),
73
74
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
74
75
// 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),
79
80
// iconSize: 12.0,
80
81
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,
85
86
// boxShadow: BoxShadow(
86
87
// color: Colors.pink,
87
88
// blurRadius: 2.0,
@@ -90,22 +91,19 @@ class _IconButtonsState extends State<IconButtons> {
90
91
// ),
91
92
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
92
93
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
93
- ),
94
-
94
+ ),
95
+ ],
96
+ )
95
97
],
96
- )
97
- ],
98
+ ),
98
99
),
99
- ),
100
-
101
100
GFCard (
102
101
content: Column (
103
102
children: < Widget > [
104
103
GFHeader (
105
104
text: 'Outline Icon Button' ,
106
105
type: GFHeadingType .typo6,
107
106
),
108
-
109
107
SizedBox (
110
108
height: 15.0 ,
111
109
),
@@ -120,7 +118,6 @@ class _IconButtonsState extends State<IconButtons> {
120
118
type: GFType .outline,
121
119
size: GFSize .large,
122
120
123
-
124
121
// boxShadow: BoxShadow(
125
122
// color: Colors.pink,
126
123
// blurRadius: 2.0,
@@ -135,9 +132,8 @@ class _IconButtonsState extends State<IconButtons> {
135
132
icon: Icon (Icons .ac_unit),
136
133
// iconSize: 12.0,
137
134
138
-
139
135
size: GFSize .medium,
140
- type: GFType .outline,
136
+ type: GFType .outline,
141
137
// boxShadow: BoxShadow(
142
138
// color: Colors.pink,
143
139
// blurRadius: 2.0,
@@ -155,7 +151,6 @@ type: GFType.outline,
155
151
type: GFType .outline,
156
152
size: GFSize .small,
157
153
158
-
159
154
// boxShadow: BoxShadow(
160
155
// color: Colors.pink,
161
156
// blurRadius: 2.0,
@@ -165,14 +160,11 @@ type: GFType.outline,
165
160
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
166
161
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
167
162
),
168
-
169
163
],
170
164
)
171
165
],
172
166
),
173
167
),
174
-
175
-
176
168
GFCard (
177
169
content: Column (
178
170
children: < Widget > [
@@ -194,7 +186,6 @@ type: GFType.outline,
194
186
type: GFType .transparent,
195
187
size: GFSize .large,
196
188
197
-
198
189
// boxShadow: BoxShadow(
199
190
// color: Colors.pink,
200
191
// blurRadius: 2.0,
@@ -209,7 +200,6 @@ type: GFType.outline,
209
200
icon: Icon (Icons .ac_unit),
210
201
// iconSize: 12.0,
211
202
212
-
213
203
size: GFSize .medium,
214
204
type: GFType .transparent,
215
205
// boxShadow: BoxShadow(
@@ -229,7 +219,6 @@ type: GFType.outline,
229
219
type: GFType .transparent,
230
220
size: GFSize .small,
231
221
232
-
233
222
// boxShadow: BoxShadow(
234
223
// color: Colors.pink,
235
224
// blurRadius: 2.0,
@@ -239,7 +228,6 @@ type: GFType.outline,
239
228
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
240
229
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
241
230
),
242
-
243
231
],
244
232
)
245
233
],
0 commit comments