From 138b4bb76741d736cce78bd6d61ce0ed474a624d Mon Sep 17 00:00:00 2001 From: "1147192855@qq.com" <1147192855@qq.com> Date: Sat, 19 Apr 2025 21:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../children/homework_review/configuration_files/index.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;