solved pr comments; picking multiple Images from Gallery is now possible
This commit is contained in:
1 parent
d8c72a5d28
commit
cf4dea566e
4 files changed
+13
-23
No files matched your search
@@ -13,6 +13,14 @@ class FilePick {
|
||||
return null;
|
||||
}
|
||||
|
||||
static Future<List<XFile>?> multipleGalleryPick() async {
|
||||
final pickedImages = await _picker.pickMultiImage();
|
||||
if(pickedImages.isNotEmpty) {
|
||||
return pickedImages;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static Future<List<String>?> documentPick() async {
|
||||
var result = await FilePicker.platform.pickFiles(allowMultiple: true);
|
||||
var paths = result?.files.nonNulls.map((e) => e.path).toList();
|
||||
|
||||
Reference in new issue
Block a user