mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 19:18:56 +03:30
Fix resolution of images uploading
This commit is contained in:
@@ -697,7 +697,10 @@ class _FormCreatorState extends State<FormCreator> {
|
||||
var image = await ImagePicker.platform.pickImage(
|
||||
source: ImageSource.gallery,
|
||||
imageQuality: 25,
|
||||
maxHeight: 1080,
|
||||
maxWidth: 1920,
|
||||
);
|
||||
print('Picked image size (bytes) in test: ${await image?.path.length}');
|
||||
if (image != null) {
|
||||
files.add(
|
||||
PlatformFile(
|
||||
@@ -719,6 +722,8 @@ class _FormCreatorState extends State<FormCreator> {
|
||||
var image = await ImagePicker.platform.pickImage(
|
||||
source: ImageSource.camera,
|
||||
imageQuality: 25,
|
||||
maxHeight: 1080,
|
||||
maxWidth: 1920,
|
||||
);
|
||||
if (image != null) {
|
||||
_catchImages.add(
|
||||
|
||||
Reference in New Issue
Block a user