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..563b862 100644 --- a/lib/upload_image/look_images_widget.dart +++ b/lib/upload_image/look_images_widget.dart @@ -10,6 +10,7 @@ class LookImagesTool { }) async { showDialog( context: Get.context!, + useSafeArea: false, builder: (_) { return LookImagesWidget( listData: listData, @@ -53,31 +54,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,