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

Fix initial zoom first frame #1864

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morvagergely
Copy link

Fixes #1863.

Changes

This PR eliminates the post frame function in AxisChartScaffoldWidget to calculate the virtualRect, instead uses the constraints of LayoutBuilder and other data available in _stackWidgets.

Testing

Since there is no need to wait 1 frame for the zoom to be applied, I removed the related tester.pump and expect function calls.

I removed the post frame callback checks if widget is mounted test, as it is not needed anymore afaik.

I am not a 100% sure about changing updates chart rect after the first frame when controller scale != 1.0 to Initializes zoomed chart rect when controller scale != 1.0 though, as I don't know the exact purpose of the original test.

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

Successfully merging this pull request may close these issues.

Initial zoom issue
1 participant