bugfix: add compression parameter to image_picker widget for chat to prevent too large requests.

This commit is contained in:
John Gorter 2025-03-04 11:24:13 +01:00
parent ec9dd17f61
commit 0fd82cc40e

View file

@ -58,6 +58,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,