-
Notifications
You must be signed in to change notification settings - Fork 28.4k
[two_dimensional_scrollables] TreeView Widget blanks when closing last parent #149182
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
Comments
@yahooooza Can you provide us a runnable reproducible code sample that triggers the reported log ? |
@darshankawar As already mentioned, the beaviour appears also in the given example from the library. I update the issue with the example code form the repo. You can see the beaviour in the second video i posted under "Screenshots or Video". |
Thanks for the update. Using the code sample provided and running on desktop, I was able to replicate the reported error. stable, master flutter doctor -v
|
This problem is still reproducable in the newest Flutter version, 3.29.0. Will there be a fix to this issue? |
Collapsing a node when there were other nodes offscreen was causing an unexpected null dereference during painting. This PR fixes the bug and adds a test. The bug was caused by erroneous computation of the max vertical scroll extent. Previously, the code computed this considering only scroll extent in the trailing (down) direction; it may also be the case that there is a larger scroll extent in the leading (up) direction. The miscalculation resulted in subsequent error computing the first visible row as a row that is actually offscreen, and thus does not have a render box. The row render box is asserted to be non-null during painting. Fixes flutter/flutter#149182 Fixes flutter/flutter#164981
Collapsing a node when there were other nodes offscreen was causing an unexpected null dereference during painting. This PR fixes the bug and adds a test. The bug was caused by erroneous computation of the max vertical scroll extent. Previously, the code computed this considering only scroll extent in the trailing (down) direction; it may also be the case that there is a larger scroll extent in the leading (up) direction. The miscalculation resulted in subsequent error computing the first visible row as a row that is actually offscreen, and thus does not have a render box. The row render box is asserted to be non-null during painting. Fixes flutter/flutter#149182 and flutter/flutter#164981
Steps to reproduce
Failure is also reproducable with the given example from the library.
Tested on Linux and Windows
Expected results
The item should close normally.
Actual results
The whole tree disappears and i get the following exception. After scrolling up and down the tree reappears.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
2024-05-28.17-00-23.mp4
treeview.2024-05-28.17-11-15.mp4
Logs
No response
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: