diff --git a/lib/utils/customer.dart b/lib/utils/customer.dart index 2af86c9..24a586d 100644 --- a/lib/utils/customer.dart +++ b/lib/utils/customer.dart @@ -98,14 +98,14 @@ class CustomerImagesNetworking extends StatelessWidget { Widget build(BuildContext context) { String sizeParams = ''; if (height != null && width != null) { - final h = height!.toInt() <= 2048 ? 2048 : height!.toInt(); - final w = width!.toInt() <= 2048 ? 2048 : width!.toInt(); + final h = height!.toInt() <= 1080 ? 1080 : height!.toInt(); + final w = width!.toInt() <= 1080 ? 1080 : width!.toInt(); sizeParams = 'x-oss-process=image/resize,h_$h,w_$w'; } else if (width != null) { - final w = width!.toInt() <= 2048 ? 2048 : width!.toInt(); + final w = width!.toInt() <= 1080 ? 1080 : width!.toInt(); sizeParams = 'x-oss-process=image/resize,h_$w,w_$w'; } else if (height != null) { - final h = height!.toInt() <= 2048 ? 2048 : height!.toInt(); + final h = height!.toInt() <= 1080 ? 1080 : height!.toInt(); sizeParams = 'x-oss-process=image/resize,h_$h,w_$h'; } final separator = imageUrl.contains('?') ? '&' : '?';