mcy_new #1
|
|
@ -447,6 +447,7 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theMaxHeight = useState<double>(maxHeight);
|
||||
useValueChanged<double, void>(maxHeight, (oldValue, __) => theMaxHeight.value = maxHeight);
|
||||
final scrollControllerQuestion = useScrollController(); // 试题图片区域
|
||||
var vnHandWritings = useValueNotifier<List<dynamic>>([]);
|
||||
var customPaintSize = useState<Size>(Size.zero);
|
||||
|
|
@ -572,10 +573,7 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
|||
};
|
||||
}, []);
|
||||
|
||||
useValueChanged<double, void>(maxHeight, (oldValue, __) {
|
||||
theMaxHeight.value = maxHeight;
|
||||
});
|
||||
|
||||
print("IIIIIII");
|
||||
return Container(
|
||||
height: maxHeight,
|
||||
// padding: EdgeInsets.only(bottom: 2.h, top: 2.h),
|
||||
|
|
@ -586,6 +584,7 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
|
|||
|
||||
if (imageUrl == null) return const SizedBox();
|
||||
|
||||
print("KKKKKKKKKKKKKKKKKKKKKK");
|
||||
return SingleChildScrollView(
|
||||
controller: scrollControllerQuestion,
|
||||
physics: !annotationState.pen.value ? const BouncingScrollPhysics() : const NeverScrollableScrollPhysics(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue