Skip to content

Commit bd4ea44

Browse files
authored
Merge pull request #36 from ionicfirebaseapp/master
master pull
2 parents 1a23748 + d3e0a41 commit bd4ea44

File tree

18 files changed

+1054
-548
lines changed

18 files changed

+1054
-548
lines changed

example/pubspec.lock

Lines changed: 35 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4-
archive:
4+
async:
55
dependency: transitive
66
description:
7-
name: archive
7+
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.0.11"
11-
args:
10+
version: "2.4.2"
11+
boolean_selector:
1212
dependency: transitive
1313
description:
14-
name: args
14+
name: boolean_selector
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "1.5.2"
18-
async:
17+
version: "2.0.0"
18+
characters:
1919
dependency: transitive
2020
description:
21-
name: async
21+
name: characters
2222
url: "https://pub.dartlang.org"
2323
source: hosted
24-
version: "2.4.0"
25-
boolean_selector:
24+
version: "1.0.0"
25+
charcode:
2626
dependency: transitive
2727
description:
28-
name: boolean_selector
28+
name: charcode
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.0.5"
32-
charcode:
31+
version: "1.1.3"
32+
clock:
3333
dependency: transitive
3434
description:
35-
name: charcode
35+
name: clock
3636
url: "https://pub.dartlang.org"
3737
source: hosted
38-
version: "1.1.2"
38+
version: "1.0.1"
3939
collection:
4040
dependency: transitive
4141
description:
4242
name: collection
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.14.11"
45+
version: "1.14.13"
4646
convert:
4747
dependency: transitive
4848
description:
4949
name: convert
5050
url: "https://pub.dartlang.org"
5151
source: hosted
5252
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"
6053
cupertino_icons:
6154
dependency: "direct main"
6255
description:
6356
name: cupertino_icons
6457
url: "https://pub.dartlang.org"
6558
source: hosted
6659
version: "0.1.3"
60+
fake_async:
61+
dependency: transitive
62+
description:
63+
name: fake_async
64+
url: "https://pub.dartlang.org"
65+
source: hosted
66+
version: "1.1.0"
6767
flutter:
6868
dependency: "direct main"
6969
description: flutter
@@ -75,7 +75,7 @@ packages:
7575
name: flutter_svg
7676
url: "https://pub.dartlang.org"
7777
source: hosted
78-
version: "0.17.1"
78+
version: "0.18.1"
7979
flutter_test:
8080
dependency: "direct dev"
8181
description: flutter
@@ -93,20 +93,13 @@ packages:
9393
relative: true
9494
source: path
9595
version: "1.1.3"
96-
image:
97-
dependency: transitive
98-
description:
99-
name: image
100-
url: "https://pub.dartlang.org"
101-
source: hosted
102-
version: "2.1.4"
10396
matcher:
10497
dependency: transitive
10598
description:
10699
name: matcher
107100
url: "https://pub.dartlang.org"
108101
source: hosted
109-
version: "0.12.6"
102+
version: "0.12.8"
110103
meta:
111104
dependency: transitive
112105
description:
@@ -120,49 +113,35 @@ packages:
120113
name: path
121114
url: "https://pub.dartlang.org"
122115
source: hosted
123-
version: "1.6.4"
116+
version: "1.7.0"
124117
path_drawing:
125118
dependency: transitive
126119
description:
127120
name: path_drawing
128121
url: "https://pub.dartlang.org"
129122
source: hosted
130-
version: "0.4.1"
123+
version: "0.4.1+1"
131124
path_parsing:
132125
dependency: transitive
133126
description:
134127
name: path_parsing
135128
url: "https://pub.dartlang.org"
136129
source: hosted
137130
version: "0.1.4"
138-
pedantic:
139-
dependency: transitive
140-
description:
141-
name: pedantic
142-
url: "https://pub.dartlang.org"
143-
source: hosted
144-
version: "1.8.0+1"
145131
petitparser:
146132
dependency: transitive
147133
description:
148134
name: petitparser
149135
url: "https://pub.dartlang.org"
150136
source: hosted
151-
version: "2.4.0"
137+
version: "3.0.4"
152138
plugin_platform_interface:
153139
dependency: transitive
154140
description:
155141
name: plugin_platform_interface
156142
url: "https://pub.dartlang.org"
157143
source: hosted
158144
version: "1.0.1"
159-
quiver:
160-
dependency: transitive
161-
description:
162-
name: quiver
163-
url: "https://pub.dartlang.org"
164-
source: hosted
165-
version: "2.0.5"
166145
sky_engine:
167146
dependency: transitive
168147
description: flutter
@@ -174,14 +153,14 @@ packages:
174153
name: source_span
175154
url: "https://pub.dartlang.org"
176155
source: hosted
177-
version: "1.5.5"
156+
version: "1.7.0"
178157
stack_trace:
179158
dependency: transitive
180159
description:
181160
name: stack_trace
182161
url: "https://pub.dartlang.org"
183162
source: hosted
184-
version: "1.9.3"
163+
version: "1.9.5"
185164
stream_channel:
186165
dependency: transitive
187166
description:
@@ -209,14 +188,14 @@ packages:
209188
name: test_api
210189
url: "https://pub.dartlang.org"
211190
source: hosted
212-
version: "0.2.11"
191+
version: "0.2.17"
213192
typed_data:
214193
dependency: transitive
215194
description:
216195
name: typed_data
217196
url: "https://pub.dartlang.org"
218197
source: hosted
219-
version: "1.1.6"
198+
version: "1.2.0"
220199
url_launcher:
221200
dependency: "direct main"
222201
description:
@@ -258,7 +237,7 @@ packages:
258237
name: xml
259238
url: "https://pub.dartlang.org"
260239
source: hosted
261-
version: "3.5.0"
240+
version: "4.2.0"
262241
sdks:
263-
dart: ">=2.4.0 <3.0.0"
264-
flutter: ">=1.12.8 <2.0.0"
242+
dart: ">=2.9.0-14.0.dev <3.0.0"
243+
flutter: ">=1.18.0-6.0.pre <2.0.0"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
getwidget:
1313
path: ../
1414
cupertino_icons: ^0.1.2
15-
flutter_svg: ^0.17.1
15+
flutter_svg: ^0.18.0
1616
url_launcher: ^5.4.1
1717

1818
dev_dependencies:

lib/components/accordian/gf_accordian.dart

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@ class GFAccordion extends StatefulWidget {
66
{Key key,
77
this.titleChild,
88
this.content,
9-
this.collapsedTitlebackgroundColor = GFColors.WHITE,
10-
this.expandedTitlebackgroundColor = const Color(0xFFE0E0E0),
9+
this.collapsedTitleBackgroundColor = GFColors.WHITE,
10+
this.expandedTitleBackgroundColor = const Color(0xFFE0E0E0),
1111
this.collapsedIcon = const Icon(Icons.keyboard_arrow_down),
1212
this.expandedIcon = const Icon(Icons.keyboard_arrow_up),
1313
this.title,
1414
this.textStyle = const TextStyle(color: Colors.black, fontSize: 16),
1515
this.titlePadding = const EdgeInsets.all(10),
16-
this.contentbackgroundColor,
16+
this.contentBackgroundColor,
1717
this.contentPadding = const EdgeInsets.all(10),
1818
this.contentChild,
19-
this.titleborder = const Border(),
20-
this.contentBorder = const Border(),
19+
this.titleBorder = const Border(),
20+
this.contentborder = const Border(),
2121
this.margin,
2222
this.showAccordion = false,
23-
this.onToggleCollapsed})
23+
this.onToggleCollapsed,
24+
this.titleBorderRadius = const BorderRadius.all(Radius.circular(0)),
25+
this.contentBorderRadius = const BorderRadius.all(Radius.circular(0))})
2426
: super(key: key);
2527

2628
final Function(bool) onToggleCollapsed;
@@ -38,10 +40,10 @@ class GFAccordion extends StatefulWidget {
3840
final Widget contentChild;
3941

4042
/// type of [Color] or [GFColors] which is used to change the background color of the [GFAccordion] title when it is collapsed
41-
final Color collapsedTitlebackgroundColor;
43+
final Color collapsedTitleBackgroundColor;
4244

4345
/// type of [Color] or [GFColors] which is used to change the background color of the [GFAccordion] title when it is expanded
44-
final Color expandedTitlebackgroundColor;
46+
final Color expandedTitleBackgroundColor;
4547

4648
///collapsedIcon of type [Widget] which is used to show when the [GFAccordion] is collapsed
4749
final Widget collapsedIcon;
@@ -62,16 +64,22 @@ class GFAccordion extends StatefulWidget {
6264
final EdgeInsets contentPadding;
6365

6466
/// type of [Color] or [GFColors] which is used to change the background color of the [GFAccordion] description
65-
final Color contentbackgroundColor;
67+
final Color contentBackgroundColor;
6668

6769
///margin of type [EdgeInsets] which is used to set the margin of the [GFAccordion]
6870
final EdgeInsets margin;
6971

70-
///titleborderColor of type [Color] or [GFColors] which is used to change the border color of title
71-
final Border titleborder;
72+
///titleBorderColor of type [Color] or [GFColors] which is used to change the border color of title
73+
final Border titleBorder;
7274

7375
///contentBorderColor of type [Color] or [GFColors] which is used to change the border color of content
74-
final Border contentBorder;
76+
final Border contentborder;
77+
78+
///titleBorderRadius of type [Radius] which is used to change the border radius of title
79+
final BorderRadius titleBorderRadius;
80+
81+
///contentBorderRadius of type [Radius] which is used to change the border radius of content
82+
final BorderRadius contentBorderRadius;
7583

7684
@override
7785
_GFAccordionState createState() => _GFAccordionState();
@@ -124,10 +132,11 @@ class _GFAccordionState extends State<GFAccordion>
124132
onTap: _toggleCollapsed,
125133
child: Container(
126134
decoration: BoxDecoration(
127-
border: widget.titleborder,
135+
borderRadius: widget.titleBorderRadius,
136+
border: widget.titleBorder,
128137
color: showAccordion
129-
? widget.expandedTitlebackgroundColor
130-
: widget.collapsedTitlebackgroundColor,
138+
? widget.expandedTitleBackgroundColor
139+
: widget.collapsedTitleBackgroundColor,
131140
),
132141
padding: widget.titlePadding,
133142
child: Row(
@@ -146,8 +155,9 @@ class _GFAccordionState extends State<GFAccordion>
146155
showAccordion
147156
? Container(
148157
decoration: BoxDecoration(
149-
border: widget.contentBorder,
150-
color: widget.contentbackgroundColor ?? Colors.white70,
158+
borderRadius: widget.contentBorderRadius,
159+
border: widget.contentborder,
160+
color: widget.contentBackgroundColor ?? Colors.white70,
151161
),
152162
width: MediaQuery.of(context).size.width,
153163
padding: widget.contentPadding,

lib/components/alert/gf_alert.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class _GFAlertState extends State<GFAlert> with TickerProviderStateMixin {
109109
: GFColors.WHITE,
110110
boxShadow: [
111111
BoxShadow(
112-
color: Colors.black.withOpacity(0.40), blurRadius: 3)
112+
color: Colors.black.withOpacity(0.10), blurRadius: 2)
113113
]),
114114
child: Column(
115115
crossAxisAlignment: CrossAxisAlignment.start,

0 commit comments

Comments
 (0)