Search packages, repositories and app categories

GitHub repositoryvanlooverenkoen/flutter_scroll_when_needed

flutter_scroll_when_needed

A Flutter package that allows us to only scroll when need.

flutter_scroll_when_needed project cover
Stars
3
Forks
1
Last push (UTC)
May 11, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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,
            ),
        ],
    ),
),
Koen Van Looveren GitHub avatar
GitHub author

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, BelgiumOfficial website ↗
LanguagesDartKotlinSwiftHTMLObjective-C

Packages published by this repository

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗