adds comments for public API
This commit is contained in:
parent
a227c50922
commit
8e68ab0b31
|
@ -1,4 +1,8 @@
|
||||||
## 1.0.0
|
## 1.0.1
|
||||||
|
|
||||||
|
* Adds comments for public API
|
||||||
|
|
||||||
|
## 1.0.1
|
||||||
|
|
||||||
* **Version 1.0** release.
|
* **Version 1.0** release.
|
||||||
* Adds support for ANY and VIDEO files.
|
* Adds support for ANY and VIDEO files.
|
||||||
|
|
|
@ -3,6 +3,7 @@ import 'dart:async';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:image_picker/image_picker.dart';
|
import 'package:image_picker/image_picker.dart';
|
||||||
|
|
||||||
|
/// Supported file types, [ANY] should be used if the file you need isn't listed
|
||||||
enum FileType {
|
enum FileType {
|
||||||
ANY,
|
ANY,
|
||||||
PDF,
|
PDF,
|
||||||
|
@ -22,6 +23,7 @@ class FilePicker {
|
||||||
return image?.path;
|
return image?.path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns a [String] with the absolute path for the selected file
|
||||||
static Future<String> getFilePath({FileType type = FileType.ANY}) async {
|
static Future<String> getFilePath({FileType type = FileType.ANY}) async {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case FileType.IMAGE:
|
case FileType.IMAGE:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: file_picker
|
name: file_picker
|
||||||
description: A plugin that allows you to pick absolute paths from diferent file types.
|
description: A plugin that allows you to pick absolute paths from diferent file types.
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
author: Miguel Ruivo <miguelpruivo@outlook.com>
|
author: Miguel Ruivo <miguelpruivo@outlook.com>
|
||||||
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue