Skip to content

Commit 8d03ad9

Browse files
committed
Null-safety port
1 parent 547ea3e commit 8d03ad9

File tree

8 files changed

+52
-461
lines changed

8 files changed

+52
-461
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.2.0-nullsafety.0] - 20-May-2021.
2+
* Ported to null-safety
3+
14
## [1.1.0] - 25-Mar-2021.
25
* `flutter_form_bulder` v5 compatible
36

example/.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.0/","dependencies":[]},{"name":"flutter_keyboard_visibility","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.0.0/","dependencies":[]},{"name":"permission_handler","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-6.1.1/","dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.0/","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_keyboard_visibility","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.0.0/","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.0/","dependencies":[]},{"name":"permission_handler","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-6.1.1/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"file_picker","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.0/","dependencies":[]},{"name":"flutter_keyboard_visibility_web","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"permission_handler","dependencies":[]}],"date_created":"2021-03-25 13:40:00.944941","version":"2.0.3"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.0/","dependencies":[]},{"name":"permission_handler","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-6.1.1/","dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.0/","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.0/","dependencies":[]},{"name":"permission_handler","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-6.1.1/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"file_picker","path":"/Users/danvick/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.0/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"permission_handler","dependencies":[]}],"date_created":"2021-05-20 14:55:01.850777","version":"2.2.0"}

example/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class _MyHomePageState extends State<MyHomePage> {
4141
name: 'images',
4242
decoration: InputDecoration(labelText: 'Attachments'),
4343
maxFiles: null,
44+
allowMultiple: true,
4445
previewImages: true,
4546
onChanged: (val) => print(val),
4647
selector: Row(
@@ -57,8 +58,8 @@ class _MyHomePageState extends State<MyHomePage> {
5758
ElevatedButton(
5859
child: Text('Submit'),
5960
onPressed: () {
60-
_formKey.currentState.save();
61-
print(_formKey.currentState.value);
61+
_formKey.currentState!.save();
62+
print(_formKey.currentState!.value);
6263
},
6364
),
6465
],

example/pubspec.lock

Lines changed: 5 additions & 215 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,12 @@
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.13"
11-
args:
12-
dependency: transitive
13-
description:
14-
name: args
15-
url: "https://pub.dartlang.org"
16-
source: hosted
17-
version: "1.6.0"
18-
asn1lib:
19-
dependency: transitive
20-
description:
21-
name: asn1lib
22-
url: "https://pub.dartlang.org"
23-
source: hosted
24-
version: "0.6.5"
254
async:
265
dependency: transitive
276
description:
287
name: async
298
url: "https://pub.dartlang.org"
309
source: hosted
31-
version: "2.5.0"
32-
basic_utils:
33-
dependency: transitive
34-
description:
35-
name: basic_utils
36-
url: "https://pub.dartlang.org"
37-
source: hosted
3810
version: "2.6.1"
3911
boolean_selector:
4012
dependency: transitive
@@ -78,34 +50,6 @@ packages:
7850
url: "https://pub.dartlang.org"
7951
source: hosted
8052
version: "5.9.55"
81-
convert:
82-
dependency: transitive
83-
description:
84-
name: convert
85-
url: "https://pub.dartlang.org"
86-
source: hosted
87-
version: "2.1.1"
88-
crypto:
89-
dependency: transitive
90-
description:
91-
name: crypto
92-
url: "https://pub.dartlang.org"
93-
source: hosted
94-
version: "2.1.5"
95-
datetime_picker_formfield:
96-
dependency: transitive
97-
description:
98-
name: datetime_picker_formfield
99-
url: "https://pub.dartlang.org"
100-
source: hosted
101-
version: "2.0.0"
102-
dropdown_search:
103-
dependency: transitive
104-
description:
105-
name: dropdown_search
106-
url: "https://pub.dartlang.org"
107-
source: hosted
108-
version: "0.5.0"
10953
fake_async:
11054
dependency: transitive
11155
description:
@@ -125,55 +69,13 @@ packages:
12569
description: flutter
12670
source: sdk
12771
version: "0.0.0"
128-
flutter_chips_input:
129-
dependency: transitive
130-
description:
131-
name: flutter_chips_input
132-
url: "https://pub.dartlang.org"
133-
source: hosted
134-
version: "1.9.5"
135-
flutter_colorpicker:
136-
dependency: transitive
137-
description:
138-
name: flutter_colorpicker
139-
url: "https://pub.dartlang.org"
140-
source: hosted
141-
version: "0.4.0"
142-
flutter_datetime_picker:
143-
dependency: transitive
144-
description:
145-
name: flutter_datetime_picker
146-
url: "https://pub.dartlang.org"
147-
source: hosted
148-
version: "1.5.0"
14972
flutter_form_builder:
15073
dependency: "direct main"
15174
description:
15275
name: flutter_form_builder
15376
url: "https://pub.dartlang.org"
15477
source: hosted
155-
version: "5.0.0"
156-
flutter_keyboard_visibility:
157-
dependency: transitive
158-
description:
159-
name: flutter_keyboard_visibility
160-
url: "https://pub.dartlang.org"
161-
source: hosted
162-
version: "5.0.0"
163-
flutter_keyboard_visibility_platform_interface:
164-
dependency: transitive
165-
description:
166-
name: flutter_keyboard_visibility_platform_interface
167-
url: "https://pub.dartlang.org"
168-
source: hosted
169-
version: "2.0.0"
170-
flutter_keyboard_visibility_web:
171-
dependency: transitive
172-
description:
173-
name: flutter_keyboard_visibility_web
174-
url: "https://pub.dartlang.org"
175-
source: hosted
176-
version: "2.0.0"
78+
version: "6.0.1"
17779
flutter_localizations:
17880
dependency: transitive
17981
description: flutter
@@ -191,20 +93,6 @@ packages:
19193
description: flutter
19294
source: sdk
19395
version: "0.0.0"
194-
flutter_touch_spin:
195-
dependency: transitive
196-
description:
197-
name: flutter_touch_spin
198-
url: "https://pub.dartlang.org"
199-
source: hosted
200-
version: "2.0.0-nullsafety.1"
201-
flutter_typeahead:
202-
dependency: transitive
203-
description:
204-
name: flutter_typeahead
205-
url: "https://pub.dartlang.org"
206-
source: hosted
207-
version: "3.1.0"
20896
flutter_web_plugins:
20997
dependency: transitive
21098
description: flutter
@@ -216,28 +104,7 @@ packages:
216104
path: ".."
217105
relative: true
218106
source: path
219-
version: "1.0.0"
220-
http:
221-
dependency: transitive
222-
description:
223-
name: http
224-
url: "https://pub.dartlang.org"
225-
source: hosted
226-
version: "0.12.2"
227-
http_parser:
228-
dependency: transitive
229-
description:
230-
name: http_parser
231-
url: "https://pub.dartlang.org"
232-
source: hosted
233-
version: "3.1.4"
234-
image:
235-
dependency: transitive
236-
description:
237-
name: image
238-
url: "https://pub.dartlang.org"
239-
source: hosted
240-
version: "2.1.14"
107+
version: "2.0.0-nullsafety.0"
241108
intl:
242109
dependency: transitive
243110
description:
@@ -252,20 +119,6 @@ packages:
252119
url: "https://pub.dartlang.org"
253120
source: hosted
254121
version: "0.6.3"
255-
json_annotation:
256-
dependency: transitive
257-
description:
258-
name: json_annotation
259-
url: "https://pub.dartlang.org"
260-
source: hosted
261-
version: "3.0.1"
262-
logging:
263-
dependency: transitive
264-
description:
265-
name: logging
266-
url: "https://pub.dartlang.org"
267-
source: hosted
268-
version: "0.11.4"
269122
matcher:
270123
dependency: transitive
271124
description:
@@ -287,13 +140,6 @@ packages:
287140
url: "https://pub.dartlang.org"
288141
source: hosted
289142
version: "1.8.0"
290-
pedantic:
291-
dependency: transitive
292-
description:
293-
name: pedantic
294-
url: "https://pub.dartlang.org"
295-
source: hosted
296-
version: "1.9.0"
297143
permission_handler:
298144
dependency: transitive
299145
description:
@@ -308,48 +154,13 @@ packages:
308154
url: "https://pub.dartlang.org"
309155
source: hosted
310156
version: "3.1.1"
311-
petitparser:
312-
dependency: transitive
313-
description:
314-
name: petitparser
315-
url: "https://pub.dartlang.org"
316-
source: hosted
317-
version: "3.0.4"
318157
plugin_platform_interface:
319158
dependency: transitive
320159
description:
321160
name: plugin_platform_interface
322161
url: "https://pub.dartlang.org"
323162
source: hosted
324163
version: "2.0.0"
325-
pointycastle:
326-
dependency: transitive
327-
description:
328-
name: pointycastle
329-
url: "https://pub.dartlang.org"
330-
source: hosted
331-
version: "1.0.2"
332-
random_string:
333-
dependency: transitive
334-
description:
335-
name: random_string
336-
url: "https://pub.dartlang.org"
337-
source: hosted
338-
version: "2.1.0"
339-
rating_bar:
340-
dependency: transitive
341-
description:
342-
name: rating_bar
343-
url: "https://pub.dartlang.org"
344-
source: hosted
345-
version: "0.2.0"
346-
signature:
347-
dependency: transitive
348-
description:
349-
name: signature
350-
url: "https://pub.dartlang.org"
351-
source: hosted
352-
version: "3.2.1"
353164
sky_engine:
354165
dependency: transitive
355166
description: flutter
@@ -361,7 +172,7 @@ packages:
361172
name: source_span
362173
url: "https://pub.dartlang.org"
363174
source: hosted
364-
version: "1.8.0"
175+
version: "1.8.1"
365176
stack_trace:
366177
dependency: transitive
367178
description:
@@ -396,42 +207,21 @@ packages:
396207
name: test_api
397208
url: "https://pub.dartlang.org"
398209
source: hosted
399-
version: "0.2.19"
210+
version: "0.3.0"
400211
typed_data:
401212
dependency: transitive
402213
description:
403214
name: typed_data
404215
url: "https://pub.dartlang.org"
405216
source: hosted
406217
version: "1.3.0"
407-
validators:
408-
dependency: transitive
409-
description:
410-
name: validators
411-
url: "https://pub.dartlang.org"
412-
source: hosted
413-
version: "2.0.1"
414218
vector_math:
415219
dependency: transitive
416220
description:
417221
name: vector_math
418222
url: "https://pub.dartlang.org"
419223
source: hosted
420224
version: "2.1.0"
421-
vin_decoder:
422-
dependency: transitive
423-
description:
424-
name: vin_decoder
425-
url: "https://pub.dartlang.org"
426-
source: hosted
427-
version: "0.1.2"
428-
xml:
429-
dependency: transitive
430-
description:
431-
name: xml
432-
url: "https://pub.dartlang.org"
433-
source: hosted
434-
version: "4.2.0"
435225
sdks:
436226
dart: ">=2.12.0 <3.0.0"
437-
flutter: ">=2.0.0"
227+
flutter: ">=1.22.0"

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ version: 1.0.0+1
44
publish_to: 'none'
55

66
environment:
7-
sdk: ">=2.1.0 <3.0.0"
7+
sdk: ">=2.12.0 <3.0.0"
88

99
dependencies:
1010
flutter:
1111
sdk: flutter
1212

13-
flutter_form_builder: ^5.0.0
13+
flutter_form_builder: ^6.0.0
1414
form_builder_file_picker:
1515
path: ../
1616

0 commit comments

Comments
 (0)