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