-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Common desktop error: The provided ScrollController is currently attached to more than one ScrollPosition.
From medium article: https://andrewzuo.com/flutter-for-desktop-apps-isnt-ready-yet-663664262dde
For context, desktop apps frequently have multiple vertical scroll areas, e.g. desktop_photo_search has a sidebar and mainn content area, both of which scroll vertically.
This combination results in a runtime error from a cranky primary scroll controller, as mentioned above. Work around is manually instantiate a scroll controller, e.g. https://github.com/flutter/samples/blob/master/desktop_photo_search/material/lib/src/widgets/unsplash_search_content.dart#L23