补充提交
This commit is contained in:
parent
08cf62a845
commit
393b2ee578
|
|
@ -298,17 +298,19 @@ class _AnnotateItemState extends State<AnnotateItem> {
|
|||
: [
|
||||
Expanded(
|
||||
child: InkWell(
|
||||
onTap: () => easyThrottle('TO_GO_REVIEWHOMEWORK', () {
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky, overlays: []).then((_) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
Get.toNamed(Routes.reviewHomework, arguments: {
|
||||
'homeworkId': widget.homeworkId,
|
||||
'homeworkName': widget.name,
|
||||
'classId': itemData.classId,
|
||||
'subject': widget.logic.state.subject,
|
||||
});
|
||||
onTap: () => easyThrottle('TO_GO_REVIEWHOMEWORK', () async {
|
||||
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
Future.delayed(const Duration(milliseconds: 300), () {
|
||||
Get.toNamed(Routes.reviewHomework, arguments: {
|
||||
'homeworkId': widget.homeworkId,
|
||||
'homeworkName': widget.name,
|
||||
'classId': itemData.classId,
|
||||
'subject': widget.logic.state.subject,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Get.toNamed(Routes.reviewHomework, arguments: {
|
||||
// 'homeworkId': widget.homeworkId,
|
||||
// 'homeworkName': widget.name,
|
||||
|
|
|
|||
|
|
@ -308,7 +308,6 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
|||
sateData.zoomOffset = Offset(sateData.zoomOffset!.dx, -sateData.slide.value);
|
||||
}
|
||||
initPosition.value = sateData.zoomOffset;
|
||||
print("赋值 initPosition.value ${initPosition.value}");
|
||||
}
|
||||
});
|
||||
return () {
|
||||
|
|
@ -479,7 +478,7 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
|||
(dy - max(0, imageHeightOffsetStart) + ((zoomFile.imageHeightOffsetStart == null || zoomFile.imageHeightOffsetStart! <= 0.1) ? (sateData.zoomOffset?.dy.abs() ?? 0) : 0)) / theScale,
|
||||
);
|
||||
|
||||
print("最终位置 : $localPosition");
|
||||
// print("最终位置 : $localPosition");
|
||||
vnHandWritings.value = List.from(vnHandWritings.value)..add(localPosition);
|
||||
sateData.handwritings = vnHandWritings.value;
|
||||
},
|
||||
|
|
@ -545,7 +544,7 @@ class DrawingPainter extends CustomPainter {
|
|||
final Paint paintBrush = Paint()
|
||||
..color = Colors.red
|
||||
..strokeCap = StrokeCap.round
|
||||
..strokeWidth = 0.75.sp;
|
||||
..strokeWidth = 0.7.sp;
|
||||
DrawingPainter({required this.ctrl}) : super(repaint: ctrl);
|
||||
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:making_school_asignment_app/page/global_widget/ReturnToHomepage.dart';
|
||||
|
|
|
|||
Loading…
Reference in New Issue