mcy_new #1
|
|
@ -43,7 +43,7 @@ void main() async {
|
||||||
statusBarColor: Colors.transparent, //状态栏背景颜色
|
statusBarColor: Colors.transparent, //状态栏背景颜色
|
||||||
statusBarIconBrightness: Brightness.light // dark:一般显示黑色 light:一般显示白色
|
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]); // 屏幕强制竖屏
|
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]); // 屏幕强制竖屏
|
||||||
runApp(const MyApp());
|
runApp(const MyApp());
|
||||||
}
|
}
|
||||||
|
|
@ -82,6 +82,7 @@ class MyApp extends StatelessWidget {
|
||||||
},
|
},
|
||||||
routingCallback: (routing) {
|
routingCallback: (routing) {
|
||||||
String? currentRouter = routing?.current;
|
String? currentRouter = routing?.current;
|
||||||
|
// print("当前页面 ${currentRouter}");
|
||||||
// print("当前路由:${currentRouter}");
|
// print("当前路由:${currentRouter}");
|
||||||
// if ([Routes.home, Routes.myInfo].contains(currentRouter)) {
|
// if ([Routes.home, Routes.myInfo].contains(currentRouter)) {
|
||||||
// SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
// SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,21 @@ class ImageDialog {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
// insetPadding: EdgeInsets.symmetric(vertical: 10.r,horizontal: 45.r),
|
// insetPadding: EdgeInsets.symmetric(vertical: 10.r,horizontal: 45.r),
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
contentPadding: EdgeInsets.all(0),
|
contentPadding: EdgeInsets.zero,
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(15.r))),
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(15.r))),
|
||||||
content: Container(
|
content: Container(
|
||||||
width: MediaQuery.of(context).size.width - 48.r,
|
width: MediaQuery.of(context).size.width - 48.r,
|
||||||
// height: MediaQuery.of(context).size.height * 0.4,
|
// height: MediaQuery.of(context).size.height * 0.4,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
// child: PhotoView(imageProvider: NetworkImage(imgUrl),backgroundDecoration: BoxDecoration(color: Colors.transparent),)),
|
// 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,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onClose() {
|
void onClose() {
|
||||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top, SystemUiOverlay.bottom]); // 屏幕刘海
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top]); // 屏幕刘海
|
||||||
_dataListen.cancel();
|
_dataListen.cancel();
|
||||||
_paramListen.cancel();
|
_paramListen.cancel();
|
||||||
imageScaleZoomStream?.cancel();
|
imageScaleZoomStream?.cancel();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue