File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class _FilePickerDemoState extends State<FilePickerDemo> {
7979 _resetState ();
8080
8181 try {
82- pickedFiles = ( await FilePicker .platform.pickFiles (
82+ final result = await FilePicker .platform.pickFiles (
8383 type: _pickingType,
8484 allowMultiple: _multiPick,
8585 onFileLoading: (FilePickerStatus status) => setState (() {
@@ -92,8 +92,9 @@ class _FilePickerDemoState extends State<FilePickerDemo> {
9292 initialDirectory: _initialDirectoryController.text,
9393 lockParentWindow: _lockParentWindow,
9494 withData: true ,
95- ))
96- ? .files;
95+ );
96+ printInDebug ("pickedFiles: $result " );
97+ pickedFiles = result? .files;
9798 hasUserAborted = pickedFiles == null ;
9899 } on PlatformException catch (e) {
99100 _logException ('Unsupported operation: $e ' );
You can’t perform that action at this time.
0 commit comments