-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Auto-Scrollbars on Desktop are disabled #523
Comments
I think first, this should move from here: to here: |
Actually, maybe not. Still investigating. One aspect of this issue is that it should be valid that a scrollbar is interactive, but just not interactive right now. For example, when the scrollbar is not visible and the scroll controller has more than one position attached (maybe we are in the middle of a transition between tabs and the PrimaryScrollController is attached to scroll views in both) , that should not throw an error because the user cannot interact with something they cannot see. |
related: flutter/flutter#84735 |
There are a lot of scrollables in the gallery app that are causing this type of crash. I am going to disable the auto-generated scrollbars so that this crash will be mitigated while we update the gallery app for this feature. |
Related: #53 |
I am not going to be actively working on this migration right now, so I am going to un-assign myself. If any one else would like to take this on in the meantime, feel free to reach out. I am happy to provide guidance. |
By default on desktop, scrollbars are applied by the ScrollBehavior. This has been disabled in the gallery app. All vertical scrollables in the gallery need to be audited before enabling this feature.
Any that are vertical without a specified scroll controller automatically attach to the primary scroll controller. This causes issues when interacting with scrollbars because they are all trying to use the same scroll controller. To audit, the main vertical scrollable on a given page should use the primary scroll controller, any others should set
primary: false
. They will each get their own unique scroll controller for use with the scrollbar then.Previous Context:
Running the gallery app on desktop produces an error related to the scrollbars that are being automatically applied by ScrollBehavior.buildScrollbar.
Some discussion: https://discord.com/channels/608014603317936148/608021234516754444/854798350246215751
Change that appears to have introduced the error: flutter/flutter#81278
Stack trace:
The text was updated successfully, but these errors were encountered: