Merge pull request #1319 from q234rty/patch-1

fix: Bypass image compression in flutter_file_picker
pull/1349/head
Krille-chan 11 months ago committed by GitHub
commit b7cbd12b04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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