chore: open gallery on select image (#2135)

This commit is contained in:
ggurdin 2025-03-12 14:19:52 -04:00 committed by GitHub
parent 4d149dd873
commit 19a21155bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -878,7 +878,10 @@ class ChatController extends State<ChatPageWithRoom>
final files = await selectFiles(
context,
allowMultiple: true,
type: FileSelectorType.images,
// #Pangea
// type: FileSelectorType.images,
type: FileSelectorType.media,
// Pangea#
);
if (files.isEmpty) return;

View file

@ -75,7 +75,10 @@ enum FileSelectorType {
],
FileType.custom,
['zip', 'ZIP'],
);
),
// #Pangea
media([], FileType.media, null);
// Pangea#
const FileSelectorType(this.groups, this.filePickerType, this.extensions);
final List<XTypeGroup> groups;