Skip to content

Commit 76b4da7

Browse files
Merge pull request #1 from tahesse/master
null safety
2 parents 8d03ad9 + c14795d commit 76b4da7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/src/form_builder_file_picker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class _FormBuilderFilePickerState
158158
resultList = await FilePicker.platform.pickFiles(
159159
type: widget.type,
160160
allowedExtensions: widget.allowedExtensions,
161-
allowCompression: widget.allowCompression,
161+
allowCompression: widget.allowCompression ?? true,
162162
onFileLoading: widget.onFileLoading,
163163
allowMultiple: widget.allowMultiple,
164164
withData: widget.withData,
@@ -239,7 +239,7 @@ class _FormBuilderFilePickerState
239239
width: double.infinity,
240240
color: Colors.white.withOpacity(.8),
241241
child: Text(
242-
files[index].name!,
242+
files[index].name,
243243
style: theme.textTheme.caption,
244244
maxLines: 2,
245245
overflow: TextOverflow.clip,

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ packages:
6363
name: file_picker
6464
url: "https://pub.dartlang.org"
6565
source: hosted
66-
version: "3.0.0"
66+
version: "3.0.2+2"
6767
flutter:
6868
dependency: "direct main"
6969
description: flutter

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
sdk: flutter
1212

1313
flutter_form_builder: ^6.0.0
14-
file_picker: ^3.0.0
14+
file_picker: ^3.0.2
1515
permission_handler: ^6.1.1
1616
community_material_icon: ^5.9.55
1717

0 commit comments

Comments
 (0)