Skip to content

Commit 6b78d17

Browse files
committed
Started working on null safety
1 parent 778367f commit 6b78d17

File tree

10 files changed

+78
-429
lines changed

10 files changed

+78
-429
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.0.0-nullsafety.0] - 03-Apr-2020
2+
* Started working on null-safety
3+
14
## [0.1.2] - 31-Dec-2020
25
* Formatted code sample in README
36

example/android/settings_aar.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ':app'

example/integration_test/app_test.dart

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
// This is a basic Flutter integration test.
2-
//
3-
// To perform an interaction with a widget in your test, use the WidgetTester
4-
// utility that Flutter provides. For example, you can send tap and scroll
5-
// gestures. You can also use WidgetTester to find child widgets in the widget
6-
// tree, read text, and verify that the values of widget properties are correct.
7-
1+
/*
2+
import 'package:example/main.dart' as app;
83
import 'package:flutter/material.dart';
94
import 'package:flutter_test/flutter_test.dart';
10-
import 'package:integration_test/integration_test.dart';
11-
12-
import 'package:example/main.dart' as app;
5+
// import 'package:integration_test/integration_test.dart';
136
147
void main() => run(_testMain);
158
@@ -34,3 +27,4 @@ void _testMain() {
3427
expect(find.text('1'), findsOneWidget);
3528
});
3629
}
30+
*/

example/lib/main.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ class MyHomePage extends StatelessWidget {
4444
),
4545
const SizedBox(height: 15),
4646
ElevatedButton(
47-
child: Text('Submit'),
48-
onPressed: () {
49-
if (_formKey.currentState.saveAndValidate()) {
50-
print(_formKey.currentState.value);
51-
}
52-
})
47+
child: Text('Submit'),
48+
onPressed: () {
49+
if (_formKey.currentState.saveAndValidate()) {
50+
print(_formKey.currentState.value);
51+
}
52+
})
5353
],
5454
),
5555
),

example/pubspec.lock

Lines changed: 11 additions & 172 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,13 @@ packages:
1515
url: "https://pub.dartlang.org"
1616
source: hosted
1717
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"
2518
async:
2619
dependency: transitive
2720
description:
2821
name: async
2922
url: "https://pub.dartlang.org"
3023
source: hosted
3124
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
38-
version: "2.6.3"
3925
boolean_selector:
4026
dependency: transitive
4127
description:
@@ -85,20 +71,6 @@ packages:
8571
url: "https://pub.dartlang.org"
8672
source: hosted
8773
version: "2.1.5"
88-
datetime_picker_formfield:
89-
dependency: transitive
90-
description:
91-
name: datetime_picker_formfield
92-
url: "https://pub.dartlang.org"
93-
source: hosted
94-
version: "2.0.0"
95-
dropdown_search:
96-
dependency: transitive
97-
description:
98-
name: dropdown_search
99-
url: "https://pub.dartlang.org"
100-
source: hosted
101-
version: "0.4.9"
10274
fake_async:
10375
dependency: transitive
10476
description:
@@ -118,27 +90,6 @@ packages:
11890
description: flutter
11991
source: sdk
12092
version: "0.0.0"
121-
flutter_chips_input:
122-
dependency: transitive
123-
description:
124-
name: flutter_chips_input
125-
url: "https://pub.dartlang.org"
126-
source: hosted
127-
version: "1.9.5"
128-
flutter_colorpicker:
129-
dependency: transitive
130-
description:
131-
name: flutter_colorpicker
132-
url: "https://pub.dartlang.org"
133-
source: hosted
134-
version: "0.3.5"
135-
flutter_datetime_picker:
136-
dependency: transitive
137-
description:
138-
name: flutter_datetime_picker
139-
url: "https://pub.dartlang.org"
140-
source: hosted
141-
version: "1.5.0"
14293
flutter_driver:
14394
dependency: transitive
14495
description: flutter
@@ -150,28 +101,7 @@ packages:
150101
name: flutter_form_builder
151102
url: "https://pub.dartlang.org"
152103
source: hosted
153-
version: "5.0.0-alpha.1"
154-
flutter_keyboard_visibility:
155-
dependency: transitive
156-
description:
157-
name: flutter_keyboard_visibility
158-
url: "https://pub.dartlang.org"
159-
source: hosted
160-
version: "4.0.2"
161-
flutter_keyboard_visibility_platform_interface:
162-
dependency: transitive
163-
description:
164-
name: flutter_keyboard_visibility_platform_interface
165-
url: "https://pub.dartlang.org"
166-
source: hosted
167-
version: "1.0.1"
168-
flutter_keyboard_visibility_web:
169-
dependency: transitive
170-
description:
171-
name: flutter_keyboard_visibility_web
172-
url: "https://pub.dartlang.org"
173-
source: hosted
174-
version: "1.0.1"
104+
version: "6.0.0-nullsafety.0"
175105
flutter_localizations:
176106
dependency: transitive
177107
description: flutter
@@ -183,26 +113,12 @@ packages:
183113
name: flutter_plugin_android_lifecycle
184114
url: "https://pub.dartlang.org"
185115
source: hosted
186-
version: "1.0.11"
116+
version: "2.0.1"
187117
flutter_test:
188118
dependency: "direct dev"
189119
description: flutter
190120
source: sdk
191121
version: "0.0.0"
192-
flutter_touch_spin:
193-
dependency: transitive
194-
description:
195-
name: flutter_touch_spin
196-
url: "https://pub.dartlang.org"
197-
source: hosted
198-
version: "2.0.0-nullsafety.0"
199-
flutter_typeahead:
200-
dependency: transitive
201-
description:
202-
name: flutter_typeahead
203-
url: "https://pub.dartlang.org"
204-
source: hosted
205-
version: "2.0.0"
206122
flutter_web_plugins:
207123
dependency: transitive
208124
description: flutter
@@ -214,7 +130,7 @@ packages:
214130
path: ".."
215131
relative: true
216132
source: path
217-
version: "0.1.1"
133+
version: "1.0.0-nullsafety.0"
218134
fuchsia_remote_debug_protocol:
219135
dependency: transitive
220136
description: flutter
@@ -226,42 +142,35 @@ packages:
226142
name: http
227143
url: "https://pub.dartlang.org"
228144
source: hosted
229-
version: "0.12.2"
145+
version: "0.13.1"
230146
http_parser:
231147
dependency: transitive
232148
description:
233149
name: http_parser
234150
url: "https://pub.dartlang.org"
235151
source: hosted
236-
version: "3.1.4"
237-
image:
238-
dependency: transitive
239-
description:
240-
name: image
241-
url: "https://pub.dartlang.org"
242-
source: hosted
243-
version: "2.1.19"
152+
version: "4.0.0"
244153
image_picker:
245154
dependency: transitive
246155
description:
247156
name: image_picker
248157
url: "https://pub.dartlang.org"
249158
source: hosted
250-
version: "0.6.7+17"
159+
version: "0.7.4"
251160
image_picker_for_web:
252161
dependency: transitive
253162
description:
254163
name: image_picker_for_web
255164
url: "https://pub.dartlang.org"
256165
source: hosted
257-
version: "0.1.0+2"
166+
version: "2.0.0"
258167
image_picker_platform_interface:
259168
dependency: transitive
260169
description:
261170
name: image_picker_platform_interface
262171
url: "https://pub.dartlang.org"
263172
source: hosted
264-
version: "1.1.1"
173+
version: "2.0.1"
265174
integration_test:
266175
dependency: "direct dev"
267176
description: flutter
@@ -281,20 +190,6 @@ packages:
281190
url: "https://pub.dartlang.org"
282191
source: hosted
283192
version: "0.6.3"
284-
json_annotation:
285-
dependency: transitive
286-
description:
287-
name: json_annotation
288-
url: "https://pub.dartlang.org"
289-
source: hosted
290-
version: "3.0.1"
291-
logging:
292-
dependency: transitive
293-
description:
294-
name: logging
295-
url: "https://pub.dartlang.org"
296-
source: hosted
297-
version: "0.11.4"
298193
matcher:
299194
dependency: transitive
300195
description:
@@ -322,14 +217,7 @@ packages:
322217
name: pedantic
323218
url: "https://pub.dartlang.org"
324219
source: hosted
325-
version: "1.10.0-nullsafety.3"
326-
petitparser:
327-
dependency: transitive
328-
description:
329-
name: petitparser
330-
url: "https://pub.dartlang.org"
331-
source: hosted
332-
version: "3.1.0"
220+
version: "1.11.0"
333221
platform:
334222
dependency: transitive
335223
description:
@@ -343,42 +231,14 @@ packages:
343231
name: plugin_platform_interface
344232
url: "https://pub.dartlang.org"
345233
source: hosted
346-
version: "1.0.3"
347-
pointycastle:
348-
dependency: transitive
349-
description:
350-
name: pointycastle
351-
url: "https://pub.dartlang.org"
352-
source: hosted
353-
version: "1.0.2"
234+
version: "2.0.0"
354235
process:
355236
dependency: transitive
356237
description:
357238
name: process
358239
url: "https://pub.dartlang.org"
359240
source: hosted
360241
version: "4.0.0"
361-
random_string:
362-
dependency: transitive
363-
description:
364-
name: random_string
365-
url: "https://pub.dartlang.org"
366-
source: hosted
367-
version: "2.1.0"
368-
rating_bar:
369-
dependency: transitive
370-
description:
371-
name: rating_bar
372-
url: "https://pub.dartlang.org"
373-
source: hosted
374-
version: "0.2.0"
375-
signature:
376-
dependency: transitive
377-
description:
378-
name: signature
379-
url: "https://pub.dartlang.org"
380-
source: hosted
381-
version: "3.2.1"
382242
sky_engine:
383243
dependency: transitive
384244
description: flutter
@@ -440,27 +300,13 @@ packages:
440300
url: "https://pub.dartlang.org"
441301
source: hosted
442302
version: "1.3.0"
443-
validators:
444-
dependency: transitive
445-
description:
446-
name: validators
447-
url: "https://pub.dartlang.org"
448-
source: hosted
449-
version: "2.0.1"
450303
vector_math:
451304
dependency: transitive
452305
description:
453306
name: vector_math
454307
url: "https://pub.dartlang.org"
455308
source: hosted
456309
version: "2.1.0"
457-
vin_decoder:
458-
dependency: transitive
459-
description:
460-
name: vin_decoder
461-
url: "https://pub.dartlang.org"
462-
source: hosted
463-
version: "0.1.3"
464310
vm_service:
465311
dependency: transitive
466312
description:
@@ -475,13 +321,6 @@ packages:
475321
url: "https://pub.dartlang.org"
476322
source: hosted
477323
version: "2.1.2"
478-
xml:
479-
dependency: transitive
480-
description:
481-
name: xml
482-
url: "https://pub.dartlang.org"
483-
source: hosted
484-
version: "4.5.1"
485324
sdks:
486325
dart: ">=2.12.0 <3.0.0"
487-
flutter: ">=2.0.0"
326+
flutter: ">=1.20.0"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
flutter_form_builder: 5.0.0-alpha.1
13+
flutter_form_builder: ^6.0.0-nullsafety.0
1414
form_builder_image_picker:
1515
path: ../
1616

0 commit comments

Comments
 (0)