Skip to content

Conversation

@emvaized
Copy link

@emvaized emvaized commented Dec 9, 2021

When vertical padding is provided to the scrollbar, scroll thumb shrinks on reaching the end of scroll. This happens because barMaxScrollExtent doesn't count vertical padding provided to the widget.

My fix changes this behavior by subtracting widget.padding?.vertical in barMaxScrollExtent.

When vertical padding is provided to the scrollbar, scroll thumb shrinks on reaching end of scroll. This happens because `barMaxScrollExtent` doesn't count vertical padding provided to widget.
My fix changes this behavior by subtracting `widget.padding?.vertical` from `barMaxScrollExtent`.
@emvaized
Copy link
Author

emvaized commented Dec 9, 2021

Demonstration with:

DraggableScrollbar.arrows(
        padding: EdgeInsets.only(bottom: 100),
        child: ListView(
        padding: EdgeInsets.only(bottom: 100),
        ...

Before:
before (1)

After:
after

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