Skip to content

ScrollController.maxScrollExtent of NestedScrollView limited to header (outer scroll), doesn't allow for inner CustomScrollView scrolling #62363

@kbokarius

Description

@kbokarius

I have a CustomScrollView inside a NestedScrollView. The NestedScrollView has an attached ScrollController. The maxScrollExtent property of the ScrollController is only 100 pixels or so, which is the height of the header (i.e., the outer scroll). This prevents me from being able to use the ScrollController to scroll the CustomScrollView (i.e., inner scroll) all the way down to the bottom.

After digging around, it appears that it's not possible to attach a second ScrollController to the CustomScrollView since it breaks the NestedScrollView's ability to control it.

Is there a suggested alternative or a workaround for controlling the scroll position of a NestedScrollView, so that we can include the inner CustomScrollView and scroll it all the way down to the bottom?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listd: examplesSample code and demosf: scrollingViewports, list views, slivers, etc.found in release: 3.19Found to occur in 3.19found in release: 3.20Found to occur in 3.20frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework teamworkaround availableThere is a workaround available to overcome the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions