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.
|
||||
* Adds support for ANY and VIDEO files.
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'dart:async';
|
|||
import 'package:flutter/services.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 {
|
||||
ANY,
|
||||
PDF,
|
||||
|
@ -22,6 +23,7 @@ class FilePicker {
|
|||
return image?.path;
|
||||
}
|
||||
|
||||
/// Returns a [String] with the absolute path for the selected file
|
||||
static Future<String> getFilePath({FileType type = FileType.ANY}) async {
|
||||
switch (type) {
|
||||
case FileType.IMAGE:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: file_picker
|
||||
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>
|
||||
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
||||
|
||||
|
|
Loading…
Reference in New Issue