scroll_when_needed 3.0.1 copy "scroll_when_needed: ^3.0.1" to clipboard
scroll_when_needed: ^3.0.1 copied to clipboard

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,
            ),
        ],
    ),
),
copied to clipboard
20
likes
160
points
113
downloads

Publisher

verified publishervanlooverenkoen.be

Weekly Downloads

2024.07.08 - 2025.01.20

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on scroll_when_needed