Flimer stands for Flutter Image Picker for Mobile, Desktop and Web platforms.
Combining use of packages :
- image_picker :
Android
,iOS
andWeb
- file_selector :
MacOS
,Windows
andLinux
dependencies:
flimer: latest
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;
final List<XFile>? files = await flimer.pickImages();
if (files == null || files.isEmpty) {
// Operation was canceled by the user.
return;
}
print("Selected images : ${files.length}")