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:
35
35
name: file_picker
36
36
url: "https://pub.dartlang.org"
37
37
source: hosted
38
- version: "4.0.2 "
38
+ version: "4.3.0 "
39
39
flutter:
40
40
dependency: "direct main"
41
41
description: flutter
@@ -73,7 +73,7 @@ packages:
73
73
name: meta
74
74
url: "https://pub.dartlang.org"
75
75
source: hosted
76
- version: "1.3 .0"
76
+ version: "1.7 .0"
77
77
path:
78
78
dependency: transitive
79
79
description:
@@ -87,14 +87,14 @@ packages:
87
87
name: permission_handler
88
88
url: "https://pub.dartlang.org"
89
89
source: hosted
90
- version: "8.1.4+2 "
90
+ version: "8.3.0 "
91
91
permission_handler_platform_interface:
92
92
dependency: transitive
93
93
description:
94
94
name: permission_handler_platform_interface
95
95
url: "https://pub.dartlang.org"
96
96
source: hosted
97
- version: "3.6.1 "
97
+ version: "3.7.0 "
98
98
plugin_platform_interface:
99
99
dependency: transitive
100
100
description:
@@ -122,5 +122,5 @@ packages:
122
122
source: hosted
123
123
version: "2.1.0"
124
124
sdks:
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 {
242
242
if (result != null ) {
243
243
PlatformFile pickedfile = result.files.first;
244
244
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! );
246
251
247
252
try {
248
253
// Point to the cached backup file location.
249
- final file = await _createLocalFile (pickedfile.path);
254
+ final file = await _createLocalFile (pickedfile.path! );
250
255
// Read the file
251
256
final contents = await file.readAsString ();
252
257
print ("Backup found on ${file .path }" );
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ dependencies:
13
13
flutter :
14
14
sdk : flutter
15
15
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
18
18
19
19
dev_dependencies :
20
20
You can’t perform that action at this time.
0 commit comments