File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ class _FormBuilderFilePickerState
158
158
resultList = await FilePicker .platform.pickFiles (
159
159
type: widget.type,
160
160
allowedExtensions: widget.allowedExtensions,
161
- allowCompression: widget.allowCompression,
161
+ allowCompression: widget.allowCompression ?? true ,
162
162
onFileLoading: widget.onFileLoading,
163
163
allowMultiple: widget.allowMultiple,
164
164
withData: widget.withData,
@@ -239,7 +239,7 @@ class _FormBuilderFilePickerState
239
239
width: double .infinity,
240
240
color: Colors .white.withOpacity (.8 ),
241
241
child: Text (
242
- files[index].name! ,
242
+ files[index].name,
243
243
style: theme.textTheme.caption,
244
244
maxLines: 2 ,
245
245
overflow: TextOverflow .clip,
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ packages:
63
63
name: file_picker
64
64
url: "https://pub.dartlang.org"
65
65
source: hosted
66
- version: "3.0.0 "
66
+ version: "3.0.2+2 "
67
67
flutter:
68
68
dependency: "direct main"
69
69
description: flutter
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ dependencies:
11
11
sdk : flutter
12
12
13
13
flutter_form_builder : ^6.0.0
14
- file_picker : ^3.0.0
14
+ file_picker : ^3.0.2
15
15
permission_handler : ^6.1.1
16
16
community_material_icon : ^5.9.55
17
17
You can’t perform that action at this time.
0 commit comments