Skip to content

Vertical Stepper should have scrollController field #61207

@cpboyd

Description

@cpboyd

Use case

For other components that are intended to wrap Scrollable widgets, like DraggableScrollableSheet, it's necessary to specify the scrollController.

I'm currently using this to specify a scrollController, however, it adds an extra, otherwise unnecessary SingleChildScrollView:

             SingleChildScrollView(
                controller: scrollController,
                child: Stepper(
                  physics: ClampingScrollPhysics(),
                  ...
                ),
              ),

Proposal

Ideally, it'd be nice to simply use this instead:

             Stepper(
                scrollController: scrollController,
                ...
             ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.f: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions