You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow setting a custom mouse cursor for the scrollbar inside TextField #185811
TextField has a mouseCursor parameter, but it applies to the entire widget including the scrollbar area. When a multiline TextField displays a scrollbar, the mouse cursor stays as an I-beam when hovering over the scrollbar thumb and track. Users expect the cursor to change to a default arrow pointer, matching native platform behavior.
There is currently no way to set a different cursor for the scrollbar only — TextField.mouseCursor changes both the text area and scrollbar cursors together.
Hover over the text area — cursor shows I-beam (correct)
Move cursor to the scrollbar — cursor stays I-beam (expected: arrow)
Flutter version: 3.35.7 (Dart 3.9.2)
Proposal
Two possible approaches:
a) Add a scrollbarMouseCursor parameter to TextField, allowing consumers to set the cursor specifically for the scrollbar area independently from the text area cursor.
b) Add a mouseCursor parameter to RawScrollbar, so any scrollbar (not just inside TextField) can have a custom cursor when hovered.
Duplicate of #185733 (closed in favor of this simplified issue).
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
github-actions commentedon May 14, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.