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