From 79685d27fa89a2161ac20e0febc9eef6a1e78cc5 Mon Sep 17 00:00:00 2001 From: wangliankun Date: Thu, 30 Oct 2025 10:38:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(ios):=E7=85=A7=E7=89=87=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/upload_image/upload_image.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upload_image/upload_image.dart b/lib/upload_image/upload_image.dart index a201847..17b0fd8 100644 --- a/lib/upload_image/upload_image.dart +++ b/lib/upload_image/upload_image.dart @@ -329,7 +329,7 @@ class _UploadImagesState extends State { int number = (widget.max ?? 9) - imagesList.length; List list = []; List? images = await ImagePicker().pickMultiImage( - limit: number == 1 ? 2 : number, + limit: number < 2 ? 2 : number, ); if (images.isEmpty != true) { for (var element in images) {