FLUTTER ECOSYSTEM

vanlooverenkoen/flutter_scroll_when_needed

一个 Flutter 包,允许我们仅在需要时滚动。

flutter_scroll_when_needed 项目封面
Stars
3
Forks
1
最近推送(UTC)
2023年5月11日
项目状态
未归档
Koen Van Looveren GitHub avatar
GITHUB User

Koen Van Looveren ↗

Igniting a digital impakt on your products, your customer, communities with Impaktfull. Mainly using Flutter / Dart / Webflow / Node.js. Never stop learning!

@impaktfull & @flutter-belgium Antwerp, Belgium官方网站 ↗
语言DartKotlinSwiftHTMLObjective-C

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

scroll_when_needed

Pub

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