adds comments for public API

This commit is contained in:
Miguel Ruivo 2018-12-06 16:05:10 +00:00
parent a227c50922
commit 8e68ab0b31
3 changed files with 8 additions and 2 deletions

View File

@ -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.

View File

@ -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:

View File

@ -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