Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follower and boundary handle scale outside Leader but not inside #31

Open
matthew-carroll opened this issue Apr 25, 2023 · 0 comments
Open

Comments

@matthew-carroll
Copy link
Collaborator

With the Follower offset, as well as the boundary behavior, we get the expected result when a scale is applied outside the Leader:

Transform.scale(
  scale: 3,
  child: Leader(
    link: _anchor,
    recalculateGlobalOffset: widget.recalculateGlobalOffset,
    child: Container(width: 25, height: 25, color: Colors.red),
  ),
)

However, we don't get the expected result when the scale is applied between the Leader and the content:

Leader(
  link: _anchor,
  recalculateGlobalOffset: widget.recalculateGlobalOffset,
  child: Transform.scale(
    scale: 3,
    child: Container(width: 25, height: 25, color: Colors.red),
  ),
)

Both of the above widget trees should produce the same result.

When this is fixed, write a golden test that runs both of these trees through the same golden image to make sure they produce the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant