scroll_when_needed 1.0.0

Flutter Android iOS web

A packages that allows us to only scroll when needed with the correct platform specific behaviour.

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,
            ),
        ],
    ),
),
5
likes
110
pub points
66%
popularity

Publisher

vanlooverenkoen.be

A packages that allows us to only scroll when needed with the correct platform specific behaviour.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on scroll_when_needed