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,
),
],
),
),