v2.1.1
scrolls_to_top
A dart package for working with scrolls-to-top iOS feature. Easy to use
59Likes 35.7K30-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
A dart package for working with scrolls-to-top iOS feature
English project snapshot. Visit GitHub for the latest content.
A dart package for working with scrolls-to-top iOS feature
Why is this needed? This is necessary for those cases when you have several nested Scaffolds or you need to distinguish the tap event in the status bar from other scroll events
Just wrap any widget with ScrollsToTop and provide onScrollsToTop argument
@override
Widget build(BuildContext context) {
return ScrollsToTop(
onScrollsToTop: _onScrollsToTop,
scaffold: Scaffold(
appBar: AppBar(title: const Text('Scroll to top')),
body: Container(),
),
);
}
Future<void> _onScrollsToTop(ScrollsToTopEvent event) async {
//TODO: Your code
}
Dependency list 3 items
{"sdk":"flutter"}^2.0.3{"sdk":"flutter"}Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗