Skip to content

Conversation

kihyun1998
Copy link

Add an optional thumbVisibility parameter to ScrollablePositionedList to allow persistent display of the scrollbar thumb.

This forwards the thumbVisibility value to the internal Scrollbar widget, aligning with the core Flutter API.

The parameter defaults to false, preserving the current behavior of showing the thumb only while scrolling.

Description

This PR adds support for an optional thumbVisibility parameter in ScrollablePositionedList and ScrollablePositionedList.separated.

It forwards the value to the internal Scrollbar widget, allowing developers to always show the scrollbar thumb if desired.

Existing behavior is preserved by default (thumbVisibility: false), so this change is fully backward-compatible.

Related Issues

N/A – this is a new feature request, not tied to a specific issue.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I signed the CLA.
  • All tests from running flutter test pass.
  • flutter analyze does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Checklist

  • [✅] I signed the CLA.
  • [✅] All tests from running flutter test pass.
  • [✅] flutter analyze does not report any problems on my PR.
  • [✅] I am willing to follow-up on review comments in a timely manner.

Add an optional `thumbVisibility` parameter to `ScrollablePositionedList`
to allow persistent display of the scrollbar thumb.

This forwards the `thumbVisibility` value to the internal `Scrollbar`
widget, aligning with the core Flutter API.

The parameter defaults to `false`, preserving the current behavior of
showing the thumb only while scrolling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant