mcy_new #1

Merged
wangyang merged 179 commits from mcy_new into master 2025-08-28 10:10:45 +08:00
3 changed files with 12 additions and 4 deletions
Showing only changes of commit 9e24bf5747 - Show all commits

View File

@ -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(

View File

@ -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,
),
],
)),
); );
}, },
); );

View File

@ -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();