-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Handle ListView item size changes that cause underflow #9586
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
Handle ListView item size changes that cause underflow #9586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment about whether we should do this work more incrementally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You compute this value twice (once in the test on line 113 and again here. I'd pull the value out into a local and avoid computing it twice.
0556e0e to
00d57bd
Compare
* Manual roll of engine 45b66b7...ffba2f6 git log 45b66b7...ffba2f6 --oneline ffba2f6 Roll src/third_party/dart b37aa3b036...0abff7b2bb (#9588) 62514cb Roll fuchsia/sdk/core/mac-amd64 from n9fZpXVmsbgKZzS8Q2GXxB453q8AbLpfGztsPsq47pMC to BYCwsJf7r7zfd2THSGinFeIHv552AEVchXdc7VZzP0IC (#9587) 9f27212 Roll src/third_party/skia e4c88bb1f848..1ddee025229a (7 commits) (#9586) 03a31e0 Roll fuchsia/sdk/core/linux-amd64 from F9oY0d56X3aONxwv5vw9Gco--AHmC8SHuDXdhdWCnnMC to d2VK3FYSEKQ35UdZw5FdbOZUI_xgT0-1h8DnGDUHPVAC (#9583) * Fix analyzer warning.
* Manual roll of engine 45b66b7...ffba2f6 git log 45b66b7...ffba2f6 --oneline ffba2f6 Roll src/third_party/dart b37aa3b036...0abff7b2bb (flutter#9588) 62514cb Roll fuchsia/sdk/core/mac-amd64 from n9fZpXVmsbgKZzS8Q2GXxB453q8AbLpfGztsPsq47pMC to BYCwsJf7r7zfd2THSGinFeIHv552AEVchXdc7VZzP0IC (flutter#9587) 9f27212 Roll src/third_party/skia e4c88bb1f848..1ddee025229a (7 commits) (flutter#9586) 03a31e0 Roll fuchsia/sdk/core/linux-amd64 from F9oY0d56X3aONxwv5vw9Gco--AHmC8SHuDXdhdWCnnMC to d2VK3FYSEKQ35UdZw5FdbOZUI_xgT0-1h8DnGDUHPVAC (flutter#9583) * Fix analyzer warning.

If the heights of items at the beginning of a vertical ListView increase while the items are scrolled out of view, then correct the scroll offset when they reappear.