I would like to make some kind of custom scroll progress indicator for CustomScrollView.
_scrollController = ScrollController()..addListener(_scroll);
void _scroll() {
print('scrolled ${_scrollController.offset} from {??}');
}
Is there way to findout _scrollController max offset?
Or could I get some value form Scrollbar widget?
So all you need is
scrollController.position.maxScrollExtent
This gives you the max scroll extent for the ListView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With