solved pr comments; picking multiple Images from Gallery is now possible
This commit is contained in:
@ -111,8 +111,8 @@ class _ChatTextfieldState extends State<ChatTextfield> {
|
||||
leading: const Icon(Icons.image),
|
||||
title: const Text('Aus Gallerie auswählen'),
|
||||
onTap: () {
|
||||
FilePick.galleryPick().then((value) {
|
||||
if(value != null) mediaUpload([value.path]);
|
||||
FilePick.multipleGalleryPick().then((value) {
|
||||
if(value != null) mediaUpload(value.map((e) => e.path).toList());
|
||||
});
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
|
Reference in New Issue
Block a user