这是indexloc提供的服务,不要输入任何密码
Skip to content

Issue: MultiViews sizing and dynamic resize behavior #109

@symbal-zhu

Description

@symbal-zhu

Hi @Knightro63

While testing the MultiViews example, I noticed a few issues related to sizing and resizing:

  1. 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).

  1. MultiViews2 visibility issue
    When MultiViews2’s ThreeJS instance is created without setting a fixed size, MultiViews1 will not render properly (see figure 3).

  2. 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.

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions