chore: open gallery on select image (#2135)
This commit is contained in:
parent
4d149dd873
commit
19a21155bc
2 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue