Skip to content

Commit 971da99

Browse files
Sandip KakadiyaSandip Kakadiya
authored andcommitted
Merged
1 parent caac79b commit 971da99

File tree

4 files changed

+184
-76
lines changed

4 files changed

+184
-76
lines changed

example/lib/main.dart

Lines changed: 75 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import 'package:ui_kit/components/header_bar/gf_title_bar.dart';
1010
import 'package:ui_kit/components/image/gf_image_overlay.dart';
1111
import 'package:ui_kit/types/gf_type.dart';
1212

13+
import '../../lib/colors/gf_color.dart';
14+
import '../../lib/shape/gf_shape.dart';
15+
import '../../lib/size/gf_size.dart';
16+
1317
void main() => runApp(MyApp());
1418

1519
class MyApp extends StatelessWidget {
@@ -38,39 +42,46 @@ class _MyHomePageState extends State<MyHomePage> {
3842
@override
3943
Widget build(BuildContext context) {
4044
return Scaffold(
41-
appBar: AppBar(
42-
title: Text(widget.title),
43-
),
44-
body: SingleChildScrollView(
45-
child: Column(
46-
mainAxisAlignment: MainAxisAlignment.center,
47-
crossAxisAlignment: CrossAxisAlignment.center,
48-
children: <Widget>[
49-
50-
GFTitleBar(
51-
avatar: GFAvatar(
52-
child: Text("tb"),
53-
),
54-
title: Text('title'),
55-
subTitle: Text('subtitle'),
56-
icon: GFIconButton(
57-
icon: Icon(Icons.favorite_border),
58-
),
59-
),
60-
61-
GFCard(
62-
avatar: GFAvatar(
63-
child: Text("tb"),
45+
appBar: AppBar(
46+
title: Text(widget.title),
47+
),
48+
body: SingleChildScrollView(
49+
child: Column(
50+
mainAxisAlignment: MainAxisAlignment.center,
51+
crossAxisAlignment: CrossAxisAlignment.center,
52+
children: <Widget>[
53+
GFTitleBar(
54+
avatar: GFAvatar(
55+
child: Text("GF"),
56+
),
57+
title: Text('Title'),
58+
subTitle: Text('Subtitle'),
59+
icon: GFIconButton(
60+
onPressed: null,
61+
icon: Icon(Icons.favorite_border),
62+
),
6463
),
65-
title: Text('title'),
66-
subTitle: Text('subtitle'),
67-
icon: GFIconButton(
68-
icon: Icon(Icons.favorite_border),
69-
type: GFType.transparent,
64+
GFCard(
65+
image: Image.asset("lib/assets/food.jpeg"),
66+
title: GFTitleBar(
67+
avatar: GFAvatar(
68+
child: Text("tb"),
69+
),
70+
title: Text(
71+
'title',
72+
style: TextStyle(color: Colors.grey),
73+
),
74+
subTitle: Text(
75+
'subtitle',
76+
style: TextStyle(color: Colors.grey),
77+
),
78+
icon: GFIconButton(
79+
onPressed: null,
80+
icon: Icon(Icons.favorite_border),
81+
type: GFType.transparent,
82+
),
83+
),
7084
),
71-
),
72-
73-
7485

7586
// GFCard(
7687
// headertype: GFAtb(),
@@ -88,36 +99,36 @@ class _MyHomePageState extends State<MyHomePage> {
8899
// )
89100
// GFimageoverlay()
90101

91-
GFAvatar(
102+
GFAvatar(
92103
// radius: 20.0,
93-
child: Text("de"),
94-
backgroundColor: Colors.pink,
104+
child: Text("de"),
105+
backgroundColor: Colors.pink,
95106
// backgroundImage: ,
96107
// foregroundColor: Colors.deepOrangeAccent,
97108
// shape: GFShape.standard,
98109
// size: GFSize.medium,
99110
// borderRadius: BorderRadius.circular(20.0),
100-
),
101-
GFIconBadges(
102-
onPressed: null,
103-
child: GFIconButton(
104-
onPressed: null,
105-
icon: Icon(Icons.ac_unit),
106111
),
107-
counterChild: GFBadge(
108-
text: '12',
112+
GFIconBadges(
113+
onPressed: null,
114+
child: GFIconButton(
115+
onPressed: null,
116+
icon: Icon(Icons.ac_unit),
117+
),
118+
counterChild: GFBadge(
119+
text: '12',
109120
// color: GFColor.dark,
110121
// shape: GFShape.circle,
111122
// size: GFSize.small,
112123
// border: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
113124
// textColor: GFColor.white,
114125
// textStyle: TextStyle(fontWeight: FontWeight.w500, fontSize: 8.0),
115126
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.orange, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
127+
),
116128
),
117-
),
118-
GFIconButton(
119-
onPressed: null,
120-
icon: Icon(Icons.ac_unit),
129+
GFIconButton(
130+
onPressed: null,
131+
icon: Icon(Icons.ac_unit),
121132
// iconSize: 12.0,
122133
// type: GFType.solid,
123134
// shape: GFShape.pills,
@@ -132,41 +143,41 @@ class _MyHomePageState extends State<MyHomePage> {
132143
// ),
133144
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
134145
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
135-
),
136-
GFButtonBadge(
137-
onPressed: null,
146+
),
147+
GFButtonBadge(
148+
onPressed: null,
138149
// position: GFIconPosition.start,
139150
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
140151
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
141-
text: 'goodies',
152+
text: 'goodies',
142153
// color: GFColor.danger,
143154
// shape: GFShape.pills,
144155
// type: GFType.outline,
145156
// size: GFSize.small,
146-
counterChild: GFBadge(
147-
child: Text("12"),
157+
counterChild: GFBadge(
158+
child: Text("12"),
148159
// color: GFColor.dark,
149160
// shape: GFShape.circle,
150161
// size: GFSize.small,
151162
// border: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
152163
// textColor: GFColor.white,
153164
// textStyle: TextStyle(fontWeight: FontWeight.w500, fontSize: 8.0),
154-
),
155-
),
156-
GFBadge(
157-
text: '12',
165+
),
166+
),
167+
GFBadge(
168+
text: '12',
158169
// color: GFColor.dark,
159170
// shape: GFShape.circle,
160171
// size: GFSize.small,
161172
// border: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
162173
// textColor: GFColor.white,
163174
// textStyle: TextStyle(fontWeight: FontWeight.w500, fontSize: 8.0),
164-
),
165-
GFButton(
175+
),
176+
GFButton(
166177
// type: GFType.solid,
167178
// shape: GFShape.pills,
168-
text: 'goodies',
169-
onPressed: () {},
179+
text: 'goodies',
180+
onPressed: () {},
170181
// textStyle: TextStyle(fontWeight: FontWeight.w500, fontSize: 8.0),
171182
// size: GFSize.large,
172183
// buttonBoxShadow: true,
@@ -184,10 +195,9 @@ class _MyHomePageState extends State<MyHomePage> {
184195
// ),
185196
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
186197
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
187-
),
188-
],
189-
),
190-
)
191-
);
198+
),
199+
],
200+
),
201+
));
192202
}
193203
}

example/pubspec.lock

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
archive:
5+
dependency: transitive
6+
description:
7+
name: archive
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "2.0.11"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.5.2"
418
async:
519
dependency: transitive
620
description:
721
name: async
822
url: "https://pub.dartlang.org"
923
source: hosted
10-
version: "2.3.0"
24+
version: "2.4.0"
1125
boolean_selector:
1226
dependency: transitive
1327
description:
@@ -29,6 +43,20 @@ packages:
2943
url: "https://pub.dartlang.org"
3044
source: hosted
3145
version: "1.14.11"
46+
convert:
47+
dependency: transitive
48+
description:
49+
name: convert
50+
url: "https://pub.dartlang.org"
51+
source: hosted
52+
version: "2.1.1"
53+
crypto:
54+
dependency: transitive
55+
description:
56+
name: crypto
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "2.1.3"
3260
cupertino_icons:
3361
dependency: "direct main"
3462
description:
@@ -46,20 +74,27 @@ packages:
4674
description: flutter
4775
source: sdk
4876
version: "0.0.0"
77+
image:
78+
dependency: transitive
79+
description:
80+
name: image
81+
url: "https://pub.dartlang.org"
82+
source: hosted
83+
version: "2.1.4"
4984
matcher:
5085
dependency: transitive
5186
description:
5287
name: matcher
5388
url: "https://pub.dartlang.org"
5489
source: hosted
55-
version: "0.12.5"
90+
version: "0.12.6"
5691
meta:
5792
dependency: transitive
5893
description:
5994
name: meta
6095
url: "https://pub.dartlang.org"
6196
source: hosted
62-
version: "1.1.7"
97+
version: "1.1.8"
6398
path:
6499
dependency: transitive
65100
description:
@@ -74,6 +109,13 @@ packages:
74109
url: "https://pub.dartlang.org"
75110
source: hosted
76111
version: "1.8.0+1"
112+
petitparser:
113+
dependency: transitive
114+
description:
115+
name: petitparser
116+
url: "https://pub.dartlang.org"
117+
source: hosted
118+
version: "2.4.0"
77119
quiver:
78120
dependency: transitive
79121
description:
@@ -127,7 +169,7 @@ packages:
127169
name: test_api
128170
url: "https://pub.dartlang.org"
129171
source: hosted
130-
version: "0.2.5"
172+
version: "0.2.11"
131173
typed_data:
132174
dependency: transitive
133175
description:
@@ -149,5 +191,12 @@ packages:
149191
url: "https://pub.dartlang.org"
150192
source: hosted
151193
version: "2.0.8"
194+
xml:
195+
dependency: transitive
196+
description:
197+
name: xml
198+
url: "https://pub.dartlang.org"
199+
source: hosted
200+
version: "3.5.0"
152201
sdks:
153-
dart: ">=2.2.2 <3.0.0"
202+
dart: ">=2.4.0 <3.0.0"

0 commit comments

Comments
 (0)