v3.0.1
scroll_when_needed
Um pacote que nos permite rolar apenas quando necessário, com o comportamento específico da plataforma correto.
21Curtidas 216Downloads em 30 dias160Pontos Pub
AndroidiOSWebmacOSWindowsLinux
Um pacote Flutter que permite rolar apenas quando necessário.
{"sdk":"flutter"}{"sdk":"flutter"}Texto original em inglês. Visite o GitHub para a versão atual.
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,
),
],
),
),