solved pr comments; picking multiple Images from Gallery is now possible

This commit is contained in:
2024-04-08 22:39:28 +02:00
parent d8c72a5d28
commit cf4dea566e
4 changed files with 13 additions and 23 deletions

View File

@ -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();
},