From 864299f37c07711bbf2069cc9a1534a4b537a3c3 Mon Sep 17 00:00:00 2001 From: wuxinglong Date: Mon, 3 Nov 2025 15:01:55 +0800 Subject: [PATCH] =?UTF-8?q?fix;=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E7=BB=84=E4=BB=B6=20=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=A0=8F=E4=B8=8D=E6=B2=89=E6=B2=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/flutter_common.iml | 6 +- .idea/libraries/Dart_Packages.xml | 1108 ---------------------- .idea/libraries/Flutter_Plugins.xml | 48 +- lib/upload_image/look_images_widget.dart | 44 +- 4 files changed, 27 insertions(+), 1179 deletions(-) delete mode 100644 .idea/libraries/Dart_Packages.xml diff --git a/.idea/flutter_common.iml b/.idea/flutter_common.iml index 02cd058..c7d8949 100644 --- a/.idea/flutter_common.iml +++ b/.idea/flutter_common.iml @@ -2,7 +2,11 @@ - + + + + + diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml deleted file mode 100644 index d65bd16..0000000 --- a/.idea/libraries/Dart_Packages.xml +++ /dev/null @@ -1,1108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml index 96ed83d..b0f6971 100644 --- a/.idea/libraries/Flutter_Plugins.xml +++ b/.idea/libraries/Flutter_Plugins.xml @@ -1,52 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/lib/upload_image/look_images_widget.dart b/lib/upload_image/look_images_widget.dart index 07ca616..66cd3b8 100644 --- a/lib/upload_image/look_images_widget.dart +++ b/lib/upload_image/look_images_widget.dart @@ -53,31 +53,29 @@ class _LookImagesWidgetState extends State { @override Widget build(BuildContext context) { - return GestureDetector( - onTap: () => Get.back(), - child: Stack( + return Scaffold( + body: Stack( children: [ - Scaffold( - backgroundColor: Colors.black, - body: Center( - child: PhotoViewGallery.builder( - itemCount: listData.length, - pageController: PageController(initialPage: currentPage), - onPageChanged: (index) { - setState(() { - currentPage = index; - }); - }, - builder: (_, index) { - return PhotoViewGalleryPageOptions( - imageProvider: NetworkImage( - listData[index], - ), - ); - }, - ), - ), + PhotoViewGallery.builder( + itemCount: listData.length, + pageController: PageController(initialPage: currentPage), + onPageChanged: (index) { + setState(() { + currentPage = index; + }); + }, + builder: (_, index) { + return PhotoViewGalleryPageOptions( + imageProvider: NetworkImage( + listData[index], + ), + ); + }, ), + Positioned( + left: 15, + top: 50, + child: GestureDetector(onTap: () => Get.back(), child: Icon(Icons.arrow_back_ios, color: Colors.white))), //图片张数指示器 Positioned( left: 0,