-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi @Knightro63
While testing the MultiViews example, I noticed a few issues related to sizing and resizing:
- Aspect distortion
When wrapping MultiViews1 with a specific size, for example:
SizedBox(
width: 300,
height: 400,
child: MultiViews1(controller: controller),
)
the cube is no longer rendered as a square — its proportions become distorted (see comparison in figures 1 and 2).
-
MultiViews2 visibility issue
When MultiViews2’s ThreeJS instance is created without setting a fixed size, MultiViews1 will not render properly (see figure 3). -
Suggestion: add public resize method
Could the ThreeJS class expose a method to manually update the render size at runtime?
Currently _fixedSize is private and resizing only happens on didChangeMetrics
For multi-view layouts (e.g., resizable split views), rebuilding the whole view every time the user drags to resize results in poor UX.
A method like this would be very helpful:
threeJs.updateSize(Size newSize);
allowing smoother layout changes without destroying and recreating the renderer.