You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each section of the component list is itself a long list that would benefit from being split into SliverLists. These sections are all very large and there are only a few of them. This has two effects:
Way more content is being built than necessary since each large component section is only one child of the component ListView
The scrollbar jumps around as the scroll metrics report very different metrics as these large chunks are being built on demand.
In the 2 list view, there are only 3 children in the lists on either side. Instead, each side should be a CustomScrollView, and each component section should be a SliverList.
The text was updated successfully, but these errors were encountered:
Just FTR, the scrollbar thumb jumps around because the default implementation of SliverChildDelegate.estimateMaxScrollOffset doesn't produce a good or consistent estimate when the list item heights vary significantly.
In cases like this, where the list's children and the children themselves don't change, it's safe to cache the height of each child when it's rendered.
The new version is more complex and the scrollbar thumb shrinks as more of the list is exposed. Once you've scrolled to the end of the list the height of the thumb stops changing because all of the items' heights have been cached.
#1802 applies both the height caching change suggested here the use of embedded SliverLists suggested in the description to the M3 demo.
From investigating flutter/flutter#121786
Each section of the component list is itself a long list that would benefit from being split into SliverLists. These sections are all very large and there are only a few of them. This has two effects:
In the 2 list view, there are only 3 children in the lists on either side. Instead, each side should be a CustomScrollView, and each component section should be a SliverList.
The text was updated successfully, but these errors were encountered: