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) {