diff --git a/making_school_asignment_app/lib/main.dart b/making_school_asignment_app/lib/main.dart index b670e13..033f5f8 100644 --- a/making_school_asignment_app/lib/main.dart +++ b/making_school_asignment_app/lib/main.dart @@ -43,7 +43,7 @@ void main() async { statusBarColor: Colors.transparent, //状态栏背景颜色 statusBarIconBrightness: Brightness.light // dark:一般显示黑色 light:一般显示白色 )); - SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top, SystemUiOverlay.bottom]); // 屏幕刘海 + SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top]); // 屏幕刘海 await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]); // 屏幕强制竖屏 runApp(const MyApp()); } @@ -82,6 +82,7 @@ class MyApp extends StatelessWidget { }, routingCallback: (routing) { String? currentRouter = routing?.current; + // print("当前页面 ${currentRouter}"); // print("当前路由:${currentRouter}"); // if ([Routes.home, Routes.myInfo].contains(currentRouter)) { // SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( diff --git a/making_school_asignment_app/lib/page/global_widget/imgDialog.dart b/making_school_asignment_app/lib/page/global_widget/imgDialog.dart index 52f68e7..96518cd 100644 --- a/making_school_asignment_app/lib/page/global_widget/imgDialog.dart +++ b/making_school_asignment_app/lib/page/global_widget/imgDialog.dart @@ -10,14 +10,21 @@ class ImageDialog { return AlertDialog( // insetPadding: EdgeInsets.symmetric(vertical: 10.r,horizontal: 45.r), backgroundColor: Colors.transparent, - contentPadding: EdgeInsets.all(0), + contentPadding: EdgeInsets.zero, shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(15.r))), content: Container( width: MediaQuery.of(context).size.width - 48.r, // height: MediaQuery.of(context).size.height * 0.4, color: Colors.white, // child: PhotoView(imageProvider: NetworkImage(imgUrl),backgroundDecoration: BoxDecoration(color: Colors.transparent),)), - child: Image.network(RequestConfig.imgUrl + imgUrl)), + child: ListView( + children: [ + Image.network( + RequestConfig.imgUrl + imgUrl, + fit: BoxFit.fitWidth, + ), + ], + )), ); }, ); diff --git a/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart b/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart index 247ca7a..abdf3f1 100644 --- a/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart +++ b/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart @@ -149,7 +149,7 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin { @override void onClose() { - SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top, SystemUiOverlay.bottom]); // 屏幕刘海 + SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top]); // 屏幕刘海 _dataListen.cancel(); _paramListen.cancel(); imageScaleZoomStream?.cancel();