diff --git a/making_school_asignment_app/lib/common/store/user_store.dart b/making_school_asignment_app/lib/common/store/user_store.dart index f2802fd..b9cf327 100644 --- a/making_school_asignment_app/lib/common/store/user_store.dart +++ b/making_school_asignment_app/lib/common/store/user_store.dart @@ -43,11 +43,11 @@ class UserStore extends GetxController with RequestToolMixin { } var _userDetail = StorageService.to.read(AppStorageKey.userDetailInfo.value); if (_userDetail != null) { - print(_userDetail); + // print(_userDetail); userDetailInfo.value = UserInfoDetail.fromJson(_userDetail); } } catch (err) { - print('LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL${err}'); + // print('LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL${err}'); StorageService.to.remove(AppStorageKey.userInfo.value); StorageService.to.remove(AppStorageKey.userDetailInfo.value); } diff --git a/making_school_asignment_app/lib/common/utils/cached_network_img.dart b/making_school_asignment_app/lib/common/utils/cached_network_img.dart index 1d2c090..36616c0 100644 --- a/making_school_asignment_app/lib/common/utils/cached_network_img.dart +++ b/making_school_asignment_app/lib/common/utils/cached_network_img.dart @@ -21,7 +21,7 @@ Widget $theCachedNetworkImage(ImageWidgetBuilder imageBuilder, {required String imageBuilder: imageBuilder, placeholder: (context, url) => Center(child: SpinKitWave(color: Theme.of(context).primaryColor, size: 50.r)), errorListener: (e) { - print('图片报错.............$e'); + // print('图片报错.............$e'); }, errorWidget: (context, url, error) { return GestureDetector( diff --git a/making_school_asignment_app/lib/main.dart b/making_school_asignment_app/lib/main.dart index 033f5f8..c2f90d4 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]); // 屏幕刘海 + SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky, overlays: [SystemUiOverlay.top]); // 屏幕刘海 await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]); // 屏幕强制竖屏 runApp(const MyApp()); } diff --git a/making_school_asignment_app/lib/page/home_page/children/annotate_class/widget/annotate_item.dart b/making_school_asignment_app/lib/page/home_page/children/annotate_class/widget/annotate_item.dart index 4a96f36..6a923d2 100644 --- a/making_school_asignment_app/lib/page/home_page/children/annotate_class/widget/annotate_item.dart +++ b/making_school_asignment_app/lib/page/home_page/children/annotate_class/widget/annotate_item.dart @@ -299,7 +299,7 @@ class _AnnotateItemState extends State { Expanded( child: InkWell( onTap: () => easyThrottle('TO_GO_REVIEWHOMEWORK', () { - SystemChrome.setEnabledSystemUIMode(SystemUiMode.leanBack, overlays: []).then((_) { + SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky, overlays: []).then((_) { WidgetsBinding.instance.addPostFrameCallback((_) { Get.toNamed(Routes.reviewHomework, arguments: { 'homeworkId': widget.homeworkId, 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 abdf3f1..08735b2 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]); // 屏幕刘海 + SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky, overlays: [SystemUiOverlay.top]); // 屏幕刘海 _dataListen.cancel(); _paramListen.cancel(); imageScaleZoomStream?.cancel(); diff --git a/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/zoom_logic.dart b/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/zoom_logic.dart index 818b64c..c3a3f46 100644 --- a/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/zoom_logic.dart +++ b/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/zoom_logic.dart @@ -32,21 +32,17 @@ class ZoomLogic extends GetxController { /// 根据第一次加载的试题题号 分析试题图片所占的宽高 _streamZoomState = zoomState.zoomFile.listen((e) { var templateId = e?.templateId; - print("ZOOMFILE 变化了 $templateId"); if (templateId == null) return; var homeworkData = Get.find().state.data.value; var zgtAnswer = homeworkData?.zgtAnswer; - print("333333"); if (zgtAnswer == null) return; - print("444444 ${homeworkData!.templateId} 和 ${templateId}"); if (oldTemplateId == templateId) return; // getNetworkImageDimensions(zgtAnswer); // 第三方库网络图,图片会被解码并缓存于内存 oldTemplateId = templateId; - print("获取图片尺寸...."); CachedNetworkImageProvider(zgtAnswer).getImageSize().then((s) { // 提取宽度和高度 if (s == null) return;