Skip to content

Commit f8b18d9

Browse files
Sandip KakadiyaSandip Kakadiya
Sandip Kakadiya
authored and
Sandip Kakadiya
committed
getflutter to getwidget
1 parent b28a943 commit f8b18d9

34 files changed

+508
-608
lines changed

‎lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MyApp extends StatelessWidget {
99
Widget build(BuildContext context) {
1010
return MaterialApp(
1111
title:
12-
'GetFlutter - GetFlutter is open source libraries that come with pre-build 1000+ UI components. It makes development faster & more enjoyable. You can customize the component as per your need.',
12+
'GetWidget - GetWidget is open source libraries that come with pre-build 1000+ UI components. It makes development faster & more enjoyable. You can customize the component as per your need.',
1313
debugShowCheckedModeBanner: false,
1414
theme: ThemeData(
1515
primarySwatch: Colors.blue,

‎lib/screens/accordion/accordion.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:getflutter/components/accordian/gf_accordian.dart';
3-
import 'package:getflutter/getflutter.dart';
3+
import 'package:getflutter/getwidget.dart';
44
import 'package:gf_web/screens/layout/layout.dart';
55
import 'package:gf_web/styles/styles.dart';
66

@@ -71,7 +71,7 @@ class _AccordionState extends State<Accordion> {
7171
),
7272
title: 'GF Accordion',
7373
content:
74-
'GetFlutter is an open source library that comes with pre-build 1000+ UI components.'
74+
'GetWidget is an open source library that comes with pre-build 1000+ UI components.'
7575
' The library is built to make flutter development faster and more enjoyable.'),
7676
const Padding(
7777
padding: EdgeInsets.only(left: 15, top: 30),
@@ -113,7 +113,7 @@ class _AccordionState extends State<Accordion> {
113113
),
114114
title: 'GF Accordion',
115115
content:
116-
'GetFlutter is an open source library that comes with pre-build 1000+ UI components.'
116+
'GetWidget is an open source library that comes with pre-build 1000+ UI components.'
117117
' The library is built to make flutter development faster and more enjoyable.',
118118
collapsedIcon: const Text('Show'),
119119
expandedIcon: Text(
@@ -160,7 +160,7 @@ class _AccordionState extends State<Accordion> {
160160
),
161161
title: 'GF Accordion',
162162
content:
163-
'GetFlutter is an open source library that comes with pre-build 1000+ UI components.'
163+
'GetWidget is an open source library that comes with pre-build 1000+ UI components.'
164164
' The library is built to make flutter development faster and more enjoyable.',
165165
collapsedIcon: Icon(Icons.add_circle_outline),
166166
expandedIcon: Icon(

‎lib/screens/alert/alert.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:getflutter/components/alert/gf_alert.dart';
3-
import 'package:getflutter/getflutter.dart';
3+
import 'package:getflutter/getwidget.dart';
44
import 'package:getflutter/types/gf_alert_type.dart';
55
import 'package:gf_web/screens/layout/layout.dart';
66
import 'package:gf_web/styles/styles.dart';
@@ -250,7 +250,7 @@ class _AlertState extends State<Alert> {
250250
type: GFButtonType.outline2x,
251251
icon: Icon(
252252
Icons.keyboard_arrow_right,
253-
color: GFColors.PRIMARY),
253+
color: GFColors.PRIMARY,
254254
),
255255
position: GFPosition.end,
256256
text: 'Learn More',

‎lib/screens/appbar/appbar.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
2-
import 'package:getflutter/getflutter.dart';
3-
import 'package:gf_web/screens/appbar/default-appbar.dart';
2+
import 'package:getflutter/getwidget.dart';
3+
import 'package:gf_web/screens/appbar/default_appbar.dart';
44
import 'package:gf_web/screens/appbar/searchbar.dart';
55
import 'package:gf_web/screens/appbar/segmented.dart';
66
import 'package:gf_web/screens/layout/layout.dart';

‎lib/screens/appbar/default-appbar.dart renamed to ‎lib/screens/appbar/default_appbar.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import 'package:getflutter/getwidget.dart';
12
import 'package:flutter/material.dart';
2-
import 'package:getflutter/getflutter.dart';
33
import 'package:flutter/cupertino.dart';
44

55
class Appbar extends StatefulWidget {
@@ -30,7 +30,7 @@ class _AppbarState extends State<Appbar> {
3030
color: GFColors.WHITE,
3131
),
3232
),
33-
backgroundColor: GFColors.getGFColor(GFColor.dark),
33+
backgroundColor: GFColors.DARK,
3434
title: const Text('UI Kit'),
3535
actions: <Widget>[
3636
GFIconButton(

‎lib/screens/appbar/searchbar.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import 'package:getflutter/getflutter.dart';
2+
import 'package:getflutter/getwidget.dart';
33

44
class Searchbar extends StatefulWidget {
55
@override
@@ -10,7 +10,7 @@ class _SearchbarState extends State<Searchbar> {
1010
@override
1111
Widget build(BuildContext context) => Scaffold(
1212
appBar: GFAppBar(
13-
backgroundColor: GFColors.getGFColor(GFColor.dark),
13+
backgroundColor: GFColors.DARK,
1414
title: const Text('UI Kit'),
1515
searchBar: true,
1616
// searchBarColorTheme: Colors.deepOrange,

‎lib/screens/appbar/segmented.dart

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import 'package:getflutter/getflutter.dart';
2+
import 'package:getflutter/getwidget.dart';
33

44
class SegmentedAppbar extends StatefulWidget {
55
@override
@@ -24,21 +24,21 @@ class _SegmentedAppbarState extends State<SegmentedAppbar>
2424
@override
2525
Widget build(BuildContext context) => Scaffold(
2626
appBar: GFAppBar(
27-
backgroundColor: GFColors.getGFColor(GFColor.dark),
27+
backgroundColor: GFColors.DARK,
2828
title: Row(
2929
mainAxisAlignment: MainAxisAlignment.center,
3030
children: <Widget>[
3131
GFSegmentTabs(
3232
tabController: tabController,
33-
tabBarColor: GFColors.getGFColor(GFColors.LIGHT),
33+
tabBarColor: GFColors.LIGHT,
3434
// indicatorSize: TabBarIndicatorSize.tab,
3535
labelColor: GFColors.WHITE,
36-
unselectedLabelColor: GFColors.getGFColor(GFColor.dark),
36+
unselectedLabelColor: GFColors.DARK,
3737
indicator: BoxDecoration(
38-
color: GFColors.getGFColor(GFColor.dark),
38+
color: GFColors.DARK,
3939
// border: Border(
4040
// bottom: BorderSide(
41-
// color: GFColors.getGFColor(GFColor.success),
41+
// color: GFColors.SUCCESS,
4242
// width: 3.0,
4343
// ),
4444
// ),
@@ -47,8 +47,6 @@ class _SegmentedAppbarState extends State<SegmentedAppbar>
4747
indicatorPadding: const EdgeInsets.all(8),
4848
indicatorWeight: 2,
4949
border: Border.all(color: Colors.white, width: 1),
50-
initialIndex: 0,
51-
5250
length: 3,
5351
tabs: const <Widget>[
5452
Text(

‎lib/screens/avatar/avatar.dart

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import 'package:flutter/material.dart';
2-
import 'package:getflutter/getflutter.dart';
2+
import 'package:getflutter/getwidget.dart';
33
import 'package:gf_web/screens/layout/layout.dart';
44
import '../../styles/styles.dart';
5-
import 'package:getflutter/components/card/gf_card.dart';
6-
import 'package:getflutter/components/avatar/gf_avatar.dart';
7-
import 'package:getflutter/shape/gf_avatar_shape.dart';
8-
import 'package:getflutter/components/typography/gf_typography.dart';
95

106
class Avatar extends StatefulWidget {
117
@override

‎lib/screens/badges/badges.dart

+16-25
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
import 'package:flutter/material.dart';
2-
import 'package:getflutter/getflutter.dart';
2+
import 'package:getflutter/getwidget.dart';
33
import 'package:gf_web/screens/layout/layout.dart';
44
import '../../styles/styles.dart';
5-
import 'package:getflutter/components/card/gf_card.dart';
6-
import 'package:getflutter/colors/gf_color.dart';
7-
import 'package:getflutter/size/gf_size.dart';
8-
import 'package:getflutter/shape/gf_badge_shape.dart';
9-
import 'package:getflutter/components/badge/gf_badge.dart';
10-
import 'package:getflutter/components/badge/gf_button_badge.dart';
11-
import 'package:getflutter/components/badge/gf_icon_badge.dart';
12-
import 'package:getflutter/components/button/gf_icon_button.dart';
13-
import 'package:getflutter/components/typography/gf_typography.dart';
145

156
class Badges extends StatefulWidget {
167
@override
@@ -81,7 +72,7 @@ class _BadgesState extends State<Badges> {
8172
),
8273
onPressed: () {},
8374
text: 'Second',
84-
color: GFColor.secondary,
75+
color: GFColors.SECONDARY,
8576
),
8677
GFButtonBadge(
8778
icon: GFBadge(
@@ -90,7 +81,7 @@ class _BadgesState extends State<Badges> {
9081
),
9182
onPressed: () {},
9283
text: 'Success',
93-
color: GFColor.success,
84+
color: GFColors.SUCCESS,
9485
),
9586
],
9687
),
@@ -107,7 +98,7 @@ class _BadgesState extends State<Badges> {
10798
),
10899
onPressed: () {},
109100
text: 'Warning',
110-
color: GFColor.warning,
101+
color: GFColors.WARNING,
111102
),
112103
GFButtonBadge(
113104
icon: GFBadge(
@@ -116,7 +107,7 @@ class _BadgesState extends State<Badges> {
116107
),
117108
onPressed: () {},
118109
text: 'Danger',
119-
color: GFColor.danger,
110+
color: GFColors.DANGER,
120111
),
121112
GFButtonBadge(
122113
icon: GFBadge(
@@ -125,7 +116,7 @@ class _BadgesState extends State<Badges> {
125116
),
126117
onPressed: () {},
127118
text: 'Info',
128-
color: GFColor.info,
119+
color: GFColors.INFO,
129120
),
130121
],
131122
),
@@ -152,7 +143,7 @@ class _BadgesState extends State<Badges> {
152143
onPressed: () {},
153144
text: 'Dark',
154145
textStyle: TextStyle(color: Colors.white),
155-
color: GFColor.dark,
146+
color: GFColors.DARK,
156147
),
157148
GFButtonBadge(
158149
icon: GFBadge(
@@ -161,7 +152,7 @@ class _BadgesState extends State<Badges> {
161152
),
162153
onPressed: () {},
163154
text: 'Link',
164-
color: GFColor.transparent,
155+
color: GFColors.TRANSPARENT,
165156
),
166157
],
167158
),
@@ -215,7 +206,7 @@ class _BadgesState extends State<Badges> {
215206
counterChild: GFBadge(
216207
text: '12',
217208
shape: GFBadgeShape.circle,
218-
size: GFSize.small,
209+
size: GFSize.SMALL,
219210
)),
220211
GFIconBadge(
221212
child: GFIconButton(
@@ -232,7 +223,7 @@ class _BadgesState extends State<Badges> {
232223
counterChild: GFBadge(
233224
text: '12',
234225
shape: GFBadgeShape.circle,
235-
size: GFSize.small,
226+
size: GFSize.SMALL,
236227
)),
237228
GFIconBadge(
238229
child: GFIconButton(
@@ -248,7 +239,7 @@ class _BadgesState extends State<Badges> {
248239
counterChild: GFBadge(
249240
text: '12',
250241
shape: GFBadgeShape.circle,
251-
size: GFSize.small,
242+
size: GFSize.SMALL,
252243
)),
253244
GFIconBadge(
254245
child: GFIconButton(
@@ -264,7 +255,7 @@ class _BadgesState extends State<Badges> {
264255
counterChild: GFBadge(
265256
text: '12',
266257
shape: GFBadgeShape.circle,
267-
size: GFSize.small,
258+
size: GFSize.SMALL,
268259
)),
269260
GFIconBadge(
270261
child: GFIconButton(
@@ -280,7 +271,7 @@ class _BadgesState extends State<Badges> {
280271
counterChild: GFBadge(
281272
text: '12',
282273
shape: GFBadgeShape.circle,
283-
size: GFSize.small,
274+
size: GFSize.SMALL,
284275
)),
285276
GFIconBadge(
286277
child: GFIconButton(
@@ -296,7 +287,7 @@ class _BadgesState extends State<Badges> {
296287
counterChild: GFBadge(
297288
text: '12',
298289
shape: GFBadgeShape.standard,
299-
size: GFSize.small,
290+
size: GFSize.SMALL,
300291
)),
301292
GFIconBadge(
302293
child: GFIconButton(
@@ -312,7 +303,7 @@ class _BadgesState extends State<Badges> {
312303
counterChild: GFBadge(
313304
text: '12',
314305
shape: GFBadgeShape.square,
315-
size: GFSize.small,
306+
size: GFSize.SMALL,
316307
)),
317308
GFIconBadge(
318309
child: GFIconButton(
@@ -328,7 +319,7 @@ class _BadgesState extends State<Badges> {
328319
counterChild: GFBadge(
329320
text: '12',
330321
shape: GFBadgeShape.pills,
331-
size: GFSize.small,
322+
size: GFSize.SMALL,
332323
)),
333324
],
334325
),

0 commit comments

Comments
 (0)