Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Just wrap any widget with `ScrollsToTop` and provide `onScrollsToTop` argument
Widget build(BuildContext context) {
return ScrollsToTop(
onScrollsToTop: _onScrollsToTop,
scaffold: Scaffold(
child: Scaffold(
appBar: AppBar(title: const Text('Scroll to top')),
body: Container(),
),
Expand All @@ -33,4 +33,4 @@ Just wrap any widget with `ScrollsToTop` and provide `onScrollsToTop` argument
## Warning

- You need to have at least one Scaffold in your application
- If you use several Navigators, the tap events will come only to the widgets inside the main Navigator
- If you use several Navigators, the tap events will come only to the widgets inside the main Navigator