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

The percentage observer won't work well #2

Closed
letsar opened this issue Jun 23, 2018 · 0 comments
Closed

The percentage observer won't work well #2

letsar opened this issue Jun 23, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@letsar
Copy link
Owner

letsar commented Jun 23, 2018

As stated by Hixie (flutter/flutter#466 (comment)):

the percentage observer won't work well because it'll always lag by one frame.

To resolve this:

You could create a kind of RenderObject that takes the percentage as one of the constraints. Maybe its constraints could be a class with a double (the percentage) and a BoxConstraints object, and its child would be a RenderBox to which you pass the BoxConstraints. If you model this render object after the LayoutBuilder widget and its render object, you can have the same API you have today but without the lag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant