mcy_new #1
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue