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 {
|
void sendFileAction() async {
|
||||||
final result = await AppLock.of(context).pauseWhile(
|
final result = await AppLock.of(context).pauseWhile(
|
||||||
FilePicker.platform.pickFiles(
|
FilePicker.platform.pickFiles(
|
||||||
|
compressionQuality: 0,
|
||||||
allowMultiple: false,
|
allowMultiple: false,
|
||||||
withData: true,
|
withData: true,
|
||||||
),
|
),
|
||||||
|
|
@ -547,6 +548,7 @@ class ChatController extends State<ChatPageWithRoom>
|
||||||
void sendImageAction() async {
|
void sendImageAction() async {
|
||||||
final result = await AppLock.of(context).pauseWhile(
|
final result = await AppLock.of(context).pauseWhile(
|
||||||
FilePicker.platform.pickFiles(
|
FilePicker.platform.pickFiles(
|
||||||
|
compressionQuality: 0,
|
||||||
type: FileType.image,
|
type: FileType.image,
|
||||||
withData: true,
|
withData: true,
|
||||||
allowMultiple: false,
|
allowMultiple: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue