v2.1.1
scrolls_to_top
iOS のスクロールトップ機能を扱うためのDartパッケージ。使いやすい
59いいね 2.9万30日間ダウンロード160Pub ポイント
AndroidiOSWebmacOSWindowsLinux
iOS のスクロールトップ機能を扱うためのDartパッケージ
{"sdk":"flutter"}^2.0.3{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
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
https://github.com/optimist-dev/scrolls_to_top/blob/main/arts/example.gif?raw=trueJust 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
}