v2.1.1
scrolls_to_top
一個用於處理 iOS 滾動到頂部功能的 Dart 套件。容易使用
59喜歡 3.6萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個用於處理 iOS 滾動到頂部功能的 Dart 套件
以下為英文專案原文快照,最新內容請造訪 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
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
}
依賴清單 3 項
{"sdk":"flutter"}^2.0.3{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗