mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
bugfix: add compression parameter to image_picker widget for chat to prevent too large requests.
This commit is contained in:
parent
d14ad4716a
commit
ad4cf1e37b
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ class DefaultImagePickerDialog extends StatelessWidget {
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
child: ImagePicker(
|
child: ImagePicker(
|
||||||
|
config: const ImagePickerConfig(imageQuality: 20),
|
||||||
theme: ImagePickerTheme(
|
theme: ImagePickerTheme(
|
||||||
spaceBetweenIcons: 32.0,
|
spaceBetweenIcons: 32.0,
|
||||||
iconColor: theme.primaryColor,
|
iconColor: theme.primaryColor,
|
||||||
|
|
Loading…
Reference in a new issue