mcy_new #1

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

View File

@ -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();
@ -109,7 +108,6 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin {
state.studentQuestions.value = e.studentQuestions; //
final currentTemplateId = zoomState.zoomFile.value?.templateId; // ID
if (currentTemplateId != null && currentTemplateId != e.templateId) {
// zoom zoom文件
@ -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;