Skip to content

Commit 3877f18

Browse files
committed
Fixed example project using file_picker
1 parent 3b2aa7a commit 3877f18

File tree

4 files changed

+22
-59
lines changed

4 files changed

+22
-59
lines changed

open_file_ios/example/ios/Podfile.lock

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,21 @@
11
PODS:
2-
- DKImagePickerController/Core (4.3.9):
3-
- DKImagePickerController/ImageDataManager
4-
- DKImagePickerController/Resource
5-
- DKImagePickerController/ImageDataManager (4.3.9)
6-
- DKImagePickerController/PhotoGallery (4.3.9):
7-
- DKImagePickerController/Core
8-
- DKPhotoGallery
9-
- DKImagePickerController/Resource (4.3.9)
10-
- DKPhotoGallery (0.0.19):
11-
- DKPhotoGallery/Core (= 0.0.19)
12-
- DKPhotoGallery/Model (= 0.0.19)
13-
- DKPhotoGallery/Preview (= 0.0.19)
14-
- DKPhotoGallery/Resource (= 0.0.19)
15-
- SDWebImage
16-
- SwiftyGif
17-
- DKPhotoGallery/Core (0.0.19):
18-
- DKPhotoGallery/Model
19-
- DKPhotoGallery/Preview
20-
- SDWebImage
21-
- SwiftyGif
22-
- DKPhotoGallery/Model (0.0.19):
23-
- SDWebImage
24-
- SwiftyGif
25-
- DKPhotoGallery/Preview (0.0.19):
26-
- DKPhotoGallery/Model
27-
- DKPhotoGallery/Resource
28-
- SDWebImage
29-
- SwiftyGif
30-
- DKPhotoGallery/Resource (0.0.19):
31-
- SDWebImage
32-
- SwiftyGif
33-
- file_picker (0.0.1):
34-
- DKImagePickerController/PhotoGallery
35-
- Flutter
362
- Flutter (1.0.0)
373
- open_file_ios (1.0.3):
384
- Flutter
39-
- SDWebImage (5.20.0):
40-
- SDWebImage/Core (= 5.20.0)
41-
- SDWebImage/Core (5.20.0)
42-
- SwiftyGif (5.4.5)
435

446
DEPENDENCIES:
45-
- file_picker (from `.symlinks/plugins/file_picker/ios`)
467
- Flutter (from `Flutter`)
478
- open_file_ios (from `.symlinks/plugins/open_file_ios/ios`)
489

49-
SPEC REPOS:
50-
trunk:
51-
- DKImagePickerController
52-
- DKPhotoGallery
53-
- SDWebImage
54-
- SwiftyGif
55-
5610
EXTERNAL SOURCES:
57-
file_picker:
58-
:path: ".symlinks/plugins/file_picker/ios"
5911
Flutter:
6012
:path: Flutter
6113
open_file_ios:
6214
:path: ".symlinks/plugins/open_file_ios/ios"
6315

6416
SPEC CHECKSUMS:
65-
DKImagePickerController: 946cec48c7873164274ecc4624d19e3da4c1ef3c
66-
DKPhotoGallery: b3834fecb755ee09a593d7c9e389d8b5d6deed60
67-
file_picker: 5f42b9d5580e30b57b4863f9d94b448016b702e5
6817
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
6918
open_file_ios: 46184d802ee7959203f6392abcfa0dd49fdb5be0
70-
SDWebImage: 73c6079366fea25fa4bb9640d5fb58f0893facd8
71-
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
7219

7320
PODFILE CHECKSUM: 4305caec6b40dde0ae97be1573c53de1882a07e5
7421

open_file_ios/example/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class _MyAppState extends State<MyApp> {
2020
}
2121

2222
// ignore: unused_element
23-
_openPickFile() async {
23+
Future<void> _openPickFile() async {
2424
FilePickerResult? fileResult = await FilePicker.platform.pickFiles();
2525
if (fileResult?.files.first != null) {
2626
final result = await OpenFileIOS().open(fileResult!.files.first.path);
@@ -30,7 +30,7 @@ class _MyAppState extends State<MyApp> {
3030
}
3131
}
3232

33-
_openExternalImage() async {
33+
Future<void> _openExternalImage() async {
3434
setState(() {
3535
canRequestFocus = false;
3636
});
@@ -61,7 +61,7 @@ class _MyAppState extends State<MyApp> {
6161
canRequestFocus: canRequestFocus,
6262
),
6363
TextButton(
64-
onPressed: openFile,
64+
onPressed: _openPickFile,
6565
child: const Text('Tap to open file'),
6666
),
6767
],

open_file_ios/example/pubspec.lock

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ packages:
4141
url: "https://pub.dev"
4242
source: hosted
4343
version: "1.19.1"
44+
cross_file:
45+
dependency: transitive
46+
description:
47+
name: cross_file
48+
sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670"
49+
url: "https://pub.dev"
50+
source: hosted
51+
version: "0.3.4+2"
4452
cupertino_icons:
4553
dependency: "direct main"
4654
description:
@@ -69,10 +77,10 @@ packages:
6977
dependency: "direct main"
7078
description:
7179
name: file_picker
72-
sha256: be325344c1f3070354a1d84a231a1ba75ea85d413774ec4bdf444c023342e030
80+
sha256: "8986dec4581b4bcd4b6df5d75a2ea0bede3db802f500635d05fa8be298f9467f"
7381
url: "https://pub.dev"
7482
source: hosted
75-
version: "5.5.0"
83+
version: "10.1.2"
7684
flutter:
7785
dependency: "direct main"
7886
description: flutter
@@ -260,6 +268,14 @@ packages:
260268
url: "https://pub.dev"
261269
source: hosted
262270
version: "14.3.1"
271+
web:
272+
dependency: transitive
273+
description:
274+
name: web
275+
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
276+
url: "https://pub.dev"
277+
source: hosted
278+
version: "1.1.1"
263279
win32:
264280
dependency: transitive
265281
description:

open_file_ios/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies:
4242
# The example app is bundled with the plugin so we use a path dependency on
4343
# the parent directory to use the current plugin's version.
4444
path: ../
45-
file_picker: ^5.3.2
45+
file_picker: ^10.1.2
4646

4747
dev_dependencies:
4848
flutter_test:

0 commit comments

Comments
 (0)