v3.0.1
scroll_when_needed
필요할 때만 스크롤할 수 있도록 하며 올바른 플랫폼별 동작을 제공하는 패키지입니다.
21좋아요 21630일 다운로드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,
),
],
),
),