domesticmouse · GitHub

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

Read the original on github.com ↗