flutter / flutter/flutter

Expose a getter to `ScrollbarPainter._thumbRect`

Open
#161,403 0 comments 0 reactions 0 assignees View on GitHub
c: proposal f: scrolling framework P3 team-framework triaged-framework
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.