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 ed4b5c8..67fe29f 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 @@ -82,7 +82,6 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin { @override void onInit() { - appBarHeight = MediaQuery.of(Get.context!).padding.top; print("appBarHeight :$appBarHeight"); // WidgetsFlutterBinding.ensureInitialized(); @@ -108,7 +107,6 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin { var zoomState = zoomLogic.zoomState; state.studentQuestions.value = e.studentQuestions; // 赋值试题集合 - final currentTemplateId = zoomState.zoomFile.value?.templateId; // 获取旧题号ID if (currentTemplateId != null && currentTemplateId != e.templateId) { @@ -239,9 +237,9 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin { // double dpr = MediaQuery.of(context).devicePixelRatio; /// 此图片在设备中的像素比例 - double? pixelRatio = zoomLogic.zoomState.zoomFile.value?.scaleRatio ?? MediaQuery.of(context).devicePixelRatio; + // double? pixelRatio = zoomLogic.zoomState.zoomFile.value?.scaleRatio ?? MediaQuery.of(context).devicePixelRatio; - ui.Image image = await boundary.toImage(pixelRatio: pixelRatio); + ui.Image image = await boundary.toImage(); ByteData? byteData = await image.toByteData(format: ui.ImageByteFormat.png); if (byteData == null) return null;