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 3 additions and 4 deletions
Showing only changes of commit 54f27b0d72 - Show all commits

View File

@ -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(),