Skip to content

Commit 8e1455a

Browse files
committed
Release v2.0.0
1 parent b39c728 commit 8e1455a

9 files changed

+152
-217
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ Feature:
1818
- Improved Documentation
1919

2020
## [1.0.4] - 26th January, 2020.
21-
- Improved Stability
21+
- Improved Stability
22+
23+
## [2.0.0] - 6th July, 2021.
24+
25+
- Migrate Package to support null-safety

example/pubspec.lock

+37-72
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,62 @@
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"
184
async:
195
dependency: transitive
206
description:
217
name: async
228
url: "https://pub.dartlang.org"
239
source: hosted
24-
version: "2.4.0"
10+
version: "2.6.1"
2511
boolean_selector:
2612
dependency: transitive
2713
description:
2814
name: boolean_selector
2915
url: "https://pub.dartlang.org"
3016
source: hosted
31-
version: "1.0.5"
32-
charcode:
17+
version: "2.1.0"
18+
characters:
3319
dependency: transitive
3420
description:
35-
name: charcode
21+
name: characters
3622
url: "https://pub.dartlang.org"
3723
source: hosted
38-
version: "1.1.2"
39-
collection:
24+
version: "1.1.0"
25+
charcode:
4026
dependency: transitive
4127
description:
42-
name: collection
28+
name: charcode
4329
url: "https://pub.dartlang.org"
4430
source: hosted
45-
version: "1.14.11"
46-
convert:
31+
version: "1.2.0"
32+
clock:
4733
dependency: transitive
4834
description:
49-
name: convert
35+
name: clock
5036
url: "https://pub.dartlang.org"
5137
source: hosted
52-
version: "2.1.1"
53-
crypto:
38+
version: "1.1.0"
39+
collection:
5440
dependency: transitive
5541
description:
56-
name: crypto
42+
name: collection
5743
url: "https://pub.dartlang.org"
5844
source: hosted
59-
version: "2.1.3"
45+
version: "1.15.0"
6046
cupertino_icons:
6147
dependency: "direct main"
6248
description:
6349
name: cupertino_icons
6450
url: "https://pub.dartlang.org"
6551
source: hosted
6652
version: "0.1.3"
53+
fake_async:
54+
dependency: transitive
55+
description:
56+
name: fake_async
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "1.2.0"
6760
flutter:
6861
dependency: "direct main"
6962
description: flutter
@@ -75,7 +68,7 @@ packages:
7568
path: ".."
7669
relative: true
7770
source: path
78-
version: "1.0.4"
71+
version: "2.0.0"
7972
flutter_test:
8073
dependency: "direct dev"
8174
description: flutter
@@ -87,63 +80,42 @@ packages:
8780
name: http
8881
url: "https://pub.dartlang.org"
8982
source: hosted
90-
version: "0.12.0+2"
83+
version: "0.13.3"
9184
http_parser:
9285
dependency: transitive
9386
description:
9487
name: http_parser
9588
url: "https://pub.dartlang.org"
9689
source: hosted
97-
version: "3.1.3"
98-
image:
99-
dependency: transitive
100-
description:
101-
name: image
102-
url: "https://pub.dartlang.org"
103-
source: hosted
104-
version: "2.1.4"
90+
version: "4.0.0"
10591
matcher:
10692
dependency: transitive
10793
description:
10894
name: matcher
10995
url: "https://pub.dartlang.org"
11096
source: hosted
111-
version: "0.12.6"
97+
version: "0.12.10"
11298
meta:
11399
dependency: transitive
114100
description:
115101
name: meta
116102
url: "https://pub.dartlang.org"
117103
source: hosted
118-
version: "1.1.8"
104+
version: "1.3.0"
119105
path:
120106
dependency: transitive
121107
description:
122108
name: path
123109
url: "https://pub.dartlang.org"
124110
source: hosted
125-
version: "1.6.4"
111+
version: "1.8.0"
126112
pedantic:
127113
dependency: transitive
128114
description:
129115
name: pedantic
130116
url: "https://pub.dartlang.org"
131117
source: hosted
132-
version: "1.8.0+1"
133-
petitparser:
134-
dependency: transitive
135-
description:
136-
name: petitparser
137-
url: "https://pub.dartlang.org"
138-
source: hosted
139-
version: "2.4.0"
140-
quiver:
141-
dependency: transitive
142-
description:
143-
name: quiver
144-
url: "https://pub.dartlang.org"
145-
source: hosted
146-
version: "2.0.5"
118+
version: "1.11.1"
147119
sky_engine:
148120
dependency: transitive
149121
description: flutter
@@ -155,62 +127,55 @@ packages:
155127
name: source_span
156128
url: "https://pub.dartlang.org"
157129
source: hosted
158-
version: "1.5.5"
130+
version: "1.8.1"
159131
stack_trace:
160132
dependency: transitive
161133
description:
162134
name: stack_trace
163135
url: "https://pub.dartlang.org"
164136
source: hosted
165-
version: "1.9.3"
137+
version: "1.10.0"
166138
stream_channel:
167139
dependency: transitive
168140
description:
169141
name: stream_channel
170142
url: "https://pub.dartlang.org"
171143
source: hosted
172-
version: "2.0.0"
144+
version: "2.1.0"
173145
string_scanner:
174146
dependency: transitive
175147
description:
176148
name: string_scanner
177149
url: "https://pub.dartlang.org"
178150
source: hosted
179-
version: "1.0.5"
151+
version: "1.1.0"
180152
term_glyph:
181153
dependency: transitive
182154
description:
183155
name: term_glyph
184156
url: "https://pub.dartlang.org"
185157
source: hosted
186-
version: "1.1.0"
158+
version: "1.2.0"
187159
test_api:
188160
dependency: transitive
189161
description:
190162
name: test_api
191163
url: "https://pub.dartlang.org"
192164
source: hosted
193-
version: "0.2.11"
165+
version: "0.3.0"
194166
typed_data:
195167
dependency: transitive
196168
description:
197169
name: typed_data
198170
url: "https://pub.dartlang.org"
199171
source: hosted
200-
version: "1.1.6"
172+
version: "1.3.0"
201173
vector_math:
202174
dependency: transitive
203175
description:
204176
name: vector_math
205177
url: "https://pub.dartlang.org"
206178
source: hosted
207-
version: "2.0.8"
208-
xml:
209-
dependency: transitive
210-
description:
211-
name: xml
212-
url: "https://pub.dartlang.org"
213-
source: hosted
214-
version: "3.5.0"
179+
version: "2.1.0"
215180
sdks:
216-
dart: ">=2.4.0 <3.0.0"
181+
dart: ">=2.12.0 <3.0.0"

example/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: example
22
description: A new Flutter project.
3+
publish_to: none
34

45
# The following defines the version and build number for your application.
56
# A version number is three numbers separated by dots, like 1.2.43

lib/src/CustomTextField.dart

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
part of flutter_mapbox_autocomplete;
22

33
class CustomTextField extends StatelessWidget {
4-
final Widget prefixIcon;
5-
final Widget suffixIcon;
6-
final String initialValue;
4+
final Widget? prefixIcon;
5+
final Widget? suffixIcon;
6+
final String? initialValue;
77
final TextInputType inputType;
8-
final TextEditingController textController;
9-
final String hintText;
8+
final TextEditingController? textController;
9+
final String? hintText;
1010
final bool obscureText;
1111
final bool enabled;
1212
final bool readOnly;
13-
final int maxLines;
13+
final int? maxLines;
1414
final TextInputAction keyboardAction;
15-
final FocusNode focusNode;
16-
final Function validator;
17-
final Function onSaved;
18-
final Function onTap;
19-
final Function onChanged;
20-
final Function onFieldSubmitted;
21-
final Function onEditComplete;
15+
final FocusNode? focusNode;
16+
final Function? validator;
17+
final Function? onSaved;
18+
final Function? onTap;
19+
final Function? onChanged;
20+
final Function? onFieldSubmitted;
21+
final Function? onEditComplete;
2222

2323
CustomTextField({
24-
@required this.hintText,
24+
required this.hintText,
2525
this.initialValue,
2626
this.textController,
2727
this.inputType = TextInputType.text,
@@ -73,14 +73,14 @@ class CustomTextField extends StatelessWidget {
7373
readOnly: readOnly,
7474
keyboardType: inputType,
7575
textInputAction: keyboardAction,
76-
validator: validator,
77-
onSaved: onSaved,
76+
validator: validator as String? Function(String?)?,
77+
onSaved: onSaved as void Function(String?)?,
7878
focusNode: focusNode,
79-
onTap: onTap,
80-
onChanged: onChanged,
81-
onFieldSubmitted: onFieldSubmitted,
79+
onTap: onTap as void Function()?,
80+
onChanged: onChanged as void Function(String)?,
81+
onFieldSubmitted: onFieldSubmitted as void Function(String)?,
8282
controller: textController,
83-
onEditingComplete: onEditComplete,
83+
onEditingComplete: onEditComplete as void Function()?,
8484
maxLines: obscureText ? 1 : maxLines,
8585
);
8686
}

lib/src/Location.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
part of flutter_mapbox_autocomplete;
22

33
class Location {
4-
double lat;
5-
double lng;
4+
double? lat;
5+
double? lng;
66
// String address;
77

88
Location({

0 commit comments

Comments
 (0)