Merge pull request #1319 from q234rty/patch-1
fix: Bypass image compression in flutter_file_picker
This commit is contained in:
commit
b7cbd12b04
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue