Expose a getter to `ScrollbarPainter._thumbRect`
Open
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
Assessment
This issue has not been assessed yet.