fix: Bypass image compression in flutter_file_picker

We do our own image compression in the dark sdk anyway.

Might fix #1168
pull/1319/head
q234rty 6 months ago
parent d70d8803c2
commit 341a76412c
No known key found for this signature in database
GPG Key ID: D7E83C63C8CC4545

@ -508,6 +508,7 @@ class ChatController extends State<ChatPageWithRoom>
void sendFileAction() async {
final result = await AppLock.of(context).pauseWhile(
FilePicker.platform.pickFiles(
compressionQuality: 0,
allowMultiple: false,
withData: true,
),
@ -547,6 +548,7 @@ class ChatController extends State<ChatPageWithRoom>
void sendImageAction() async {
final result = await AppLock.of(context).pauseWhile(
FilePicker.platform.pickFiles(
compressionQuality: 0,
type: FileType.image,
withData: true,
allowMultiple: false,

Loading…
Cancel
Save