mcy_new #1
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
],
|
||||
)),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue