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 committed by FlutterJoey
parent d14ad4716a
commit ad4cf1e37b

View file

@ -59,6 +59,7 @@ class DefaultImagePickerDialog extends StatelessWidget {
padding: const EdgeInsets.all(8.0),
color: Colors.white,
child: ImagePicker(
config: const ImagePickerConfig(imageQuality: 20),
theme: ImagePickerTheme(
spaceBetweenIcons: 32.0,
iconColor: theme.primaryColor,