Skip to content

Commit 19a2115

Browse files
authored
chore: open gallery on select image (#2135)
1 parent 4d149dd commit 19a2115

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/pages/chat/chat.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,10 @@ class ChatController extends State<ChatPageWithRoom>
878878
final files = await selectFiles(
879879
context,
880880
allowMultiple: true,
881-
type: FileSelectorType.images,
881+
// #Pangea
882+
// type: FileSelectorType.images,
883+
type: FileSelectorType.media,
884+
// Pangea#
882885
);
883886
if (files.isEmpty) return;
884887

lib/utils/file_selector.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ enum FileSelectorType {
7575
],
7676
FileType.custom,
7777
['zip', 'ZIP'],
78-
);
78+
),
79+
// #Pangea
80+
media([], FileType.media, null);
81+
// Pangea#
7982

8083
const FileSelectorType(this.groups, this.filePickerType, this.extensions);
8184
final List<XTypeGroup> groups;

0 commit comments

Comments
 (0)