v3.0.1
scroll_when_needed
一个允许我们在需要时滚动并具有正确平台特定行为的包。
21喜欢 555近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个 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,
),
],
),
),
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗