From 0c2d7a2855500be59bf33ead49bb4d99fc8fa98f Mon Sep 17 00:00:00 2001 From: wangliankun Date: Thu, 30 Oct 2025 10:32:00 +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 --- .idea/libraries/Dart_Packages.xml | 1108 ++++++++++++++++++++++++++++ .idea/misc.xml | 1 - lib/upload_image/upload_image.dart | 4 +- 3 files changed, 1109 insertions(+), 4 deletions(-) create mode 100644 .idea/libraries/Dart_Packages.xml diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml new file mode 100644 index 0000000..d65bd16 --- /dev/null +++ b/.idea/libraries/Dart_Packages.xml @@ -0,0 +1,1108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 3827c7d..374f537 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/lib/upload_image/upload_image.dart b/lib/upload_image/upload_image.dart index fbfee2b..a201847 100644 --- a/lib/upload_image/upload_image.dart +++ b/lib/upload_image/upload_image.dart @@ -327,11 +327,9 @@ class _UploadImagesState extends State { openGallery({bool? isShowLoading}) async { int number = (widget.max ?? 9) - imagesList.length; - // List? images = - // await ImagesPicker.pick(count: number, pickType: PickType.image); List list = []; List? images = await ImagePicker().pickMultiImage( - limit: number, + limit: number == 1 ? 2 : number, ); if (images.isEmpty != true) { for (var element in images) {