minor refactor
This commit is contained in:
parent
c144c21d88
commit
97e5a46ad9
|
@ -20,7 +20,7 @@ Since we are using *image_picker* as a dependency from this plugin to load paths
|
||||||
* `NSMicrophoneUsageDescription` - describe why your app needs access to the microphone, if you intend to record videos. This is called _Privacy - Microphone Usage Description_ in the visual editor.
|
* `NSMicrophoneUsageDescription` - describe why your app needs access to the microphone, if you intend to record videos. This is called _Privacy - Microphone Usage Description_ in the visual editor.
|
||||||
|
|
||||||
## To-do
|
## To-do
|
||||||
* [X] Load paths from local files & cloud (GDrive, Dropbox, iCloud)
|
* [X] Load paths from **cloud files** (GDrive, Dropbox, iCloud)
|
||||||
* [X] Load path from **PDF**
|
* [X] Load path from **PDF**
|
||||||
* [X] Load path from **gallery**
|
* [X] Load path from **gallery**
|
||||||
* [X] Load path from **camera**
|
* [X] Load path from **camera**
|
||||||
|
|
|
@ -133,7 +133,7 @@ public class FilePickerPlugin implements MethodCallHandler {
|
||||||
|
|
||||||
private String resolveType(String type) {
|
private String resolveType(String type) {
|
||||||
|
|
||||||
switch (type){
|
switch (type) {
|
||||||
case "PDF":
|
case "PDF":
|
||||||
return "application/pdf";
|
return "application/pdf";
|
||||||
case "VIDEO":
|
case "VIDEO":
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: file_picker_example
|
name: file_picker_example
|
||||||
description: Demonstrates how to use the file_picker plugin.
|
description: An example of how to use the file_picker plugin.
|
||||||
|
|
||||||
# The following defines the version and build number for your application.
|
# The following defines the version and build number for your application.
|
||||||
# A version number is three numbers separated by dots, like 1.2.43
|
# A version number is three numbers separated by dots, like 1.2.43
|
||||||
|
|
|
@ -32,6 +32,8 @@ class FilePicker {
|
||||||
return _getPath('PDF');
|
return _getPath('PDF');
|
||||||
case FileType.VIDEO:
|
case FileType.VIDEO:
|
||||||
return _getPath('VIDEO');
|
return _getPath('VIDEO');
|
||||||
|
case FileType.ANY:
|
||||||
|
return _getPath('ANY');
|
||||||
default:
|
default:
|
||||||
return _getPath('ANY');
|
return _getPath('ANY');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue