Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alann-maulana/flimer

Flutter plugin for picking images on Mobile, Desktop and Web.
https://github.com/alann-maulana/flimer

Last synced: about 1 month ago
JSON representation

Flutter plugin for picking images on Mobile, Desktop and Web.

Awesome Lists containing this project

README

        

# Flimer
Flimer stands for **Fl**utter **Im**age Pick**er** for Mobile, Desktop and Web platforms.

Combining use of packages :
* [image_picker](https://pub.dev/packages/image_picker) : `Android`, `iOS` and `Web`
* [file_selector](https://pub.dev/packages/file_selector) : `MacOS`, `Windows` and `Linux`

## Install
```yaml
dependencies:
flimer: latest
```

## Pick a Single Image

```dart
final XFile? file = await flimer.pickImage(source: ImageSource.gallery);
if (file == null) {
// Operation was canceled by the user.
return;
}
final String fileName = file.name;
final String filePath = file.path;
```

## Pick Multiple Images

```dart
final List? files = await flimer.pickImages();
if (files == null || files.isEmpty) {
// Operation was canceled by the user.
return;
}
print("Selected images : ${files.length}")
```