Skip to content

Commit

Permalink
Merge pull request #1319 from q234rty/patch-1
Browse files Browse the repository at this point in the history
fix: Bypass image compression in flutter_file_picker
  • Loading branch information
krille-chan authored Sep 17, 2024
2 parents faea76b + 341a764 commit b7cbd12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pages/chat/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b7cbd12

Please sign in to comment.