Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alann-maulana/flimer
- Owner: alann-maulana
- License: mit
- Created: 2021-07-31T05:54:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T12:06:27.000Z (6 months ago)
- Last Synced: 2024-05-29T03:32:29.065Z (6 months ago)
- Language: C++
- Size: 203 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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}")
```