This repository was archived by the owner on Sep 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ packages:
3535 name: file_picker
3636 url: "https://pub.dartlang.org"
3737 source: hosted
38- version: "4.0.2 "
38+ version: "4.3.0 "
3939 flutter:
4040 dependency: "direct main"
4141 description: flutter
@@ -73,7 +73,7 @@ packages:
7373 name: meta
7474 url: "https://pub.dartlang.org"
7575 source: hosted
76- version: "1.3 .0"
76+ version: "1.7 .0"
7777 path:
7878 dependency: transitive
7979 description:
@@ -87,14 +87,14 @@ packages:
8787 name: permission_handler
8888 url: "https://pub.dartlang.org"
8989 source: hosted
90- version: "8.1.4+2 "
90+ version: "8.3.0 "
9191 permission_handler_platform_interface:
9292 dependency: transitive
9393 description:
9494 name: permission_handler_platform_interface
9595 url: "https://pub.dartlang.org"
9696 source: hosted
97- version: "3.6.1 "
97+ version: "3.7.0 "
9898 plugin_platform_interface:
9999 dependency: transitive
100100 description:
@@ -122,5 +122,5 @@ packages:
122122 source: hosted
123123 version: "2.1.0"
124124sdks:
125- dart: ">=2.12 .0 <3.0.0"
126- flutter: ">=2.0 .0"
125+ dart: ">=2.14 .0 <3.0.0"
126+ flutter: ">=2.5 .0"
Original file line number Diff line number Diff line change @@ -242,11 +242,16 @@ class BackupStorage {
242242 if (result != null ) {
243243 PlatformFile pickedfile = result.files.first;
244244
245- print ("Picked file cached at: " + pickedfile.path);
245+ if (pickedfile.path == null ) {
246+ print ("Unable to locate file" );
247+ return null ;
248+ }
249+
250+ print ("Picked file cached at: " + pickedfile.path! );
246251
247252 try {
248253 // Point to the cached backup file location.
249- final file = await _createLocalFile (pickedfile.path);
254+ final file = await _createLocalFile (pickedfile.path! );
250255 // Read the file
251256 final contents = await file.readAsString ();
252257 print ("Backup found on ${file .path }" );
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ dependencies:
1313 flutter :
1414 sdk : flutter
1515
16- permission_handler : ^8.1.4+2
17- file_picker : ^4.0.2
16+ permission_handler : ^8.3.0
17+ file_picker : ^4.3.0
1818
1919dev_dependencies :
2020
You can’t perform that action at this time.
0 commit comments