From 19a21155bc3a2951db51bf5157e6b509e7f77638 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Wed, 12 Mar 2025 14:19:52 -0400 Subject: [PATCH] chore: open gallery on select image (#2135) --- lib/pages/chat/chat.dart | 5 ++++- lib/utils/file_selector.dart | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index e4a9427ca..9c9c2076e 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -878,7 +878,10 @@ class ChatController extends State final files = await selectFiles( context, allowMultiple: true, - type: FileSelectorType.images, + // #Pangea + // type: FileSelectorType.images, + type: FileSelectorType.media, + // Pangea# ); if (files.isEmpty) return; diff --git a/lib/utils/file_selector.dart b/lib/utils/file_selector.dart index 015eca533..f04f7ac63 100644 --- a/lib/utils/file_selector.dart +++ b/lib/utils/file_selector.dart @@ -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 groups;