minor refactor

This commit is contained in:
Miguel Ruivo 2018-12-06 15:21:34 +00:00
parent c144c21d88
commit 97e5a46ad9
4 changed files with 5 additions and 3 deletions

View File

@ -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.
## 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 **gallery**
* [X] Load path from **camera**

View File

@ -133,7 +133,7 @@ public class FilePickerPlugin implements MethodCallHandler {
private String resolveType(String type) {
switch (type){
switch (type) {
case "PDF":
return "application/pdf";
case "VIDEO":

View File

@ -1,5 +1,5 @@
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.
# A version number is three numbers separated by dots, like 1.2.43

View File

@ -32,6 +32,8 @@ class FilePicker {
return _getPath('PDF');
case FileType.VIDEO:
return _getPath('VIDEO');
case FileType.ANY:
return _getPath('ANY');
default:
return _getPath('ANY');
}