Skip to content

Expose a getter to ScrollbarPainter._thumbRect  #161403

@angelosilvestre

Description

@angelosilvestre

Use case

I'd like to write tests that involve dragging the Scrollbar thumb. However, the thumb isn't a dedicated widget, it's just painted inside the ScrollbarPainter. Also, the thumb rect is private. Currently, there is no way to find where the Scrollbar thumb is.

Proposal

Provide a way to allow querying the scrollbar's thumb rectangle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions