v3.0.1
scroll_when_needed
一個允許我們在需要時才滾動並具備正確平台特定行為的套件。
21喜歡 216近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個 Flutter 套件,讓我們僅在需要時才滾動。
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
This packages contains a custom scrollbehavior and scroll physics that can be used to have platform specific scrolling behaviour when there is not enough space in a scrollable widget
How to use this package:
ScrollConfiguration(
behavior: ScrollWhenNeededBehavior(),
child: ListView(
physics: ScrollWhenNeededPhysics(targetPlatform: Theme.of(context).platform),
children: [
Container(
height: 100,
color: Colors.amber,
),
TextField(),
Container(
height: 300,
color: Colors.amber,
),
],
),
),