FLUTTER ECOSYSTEM

keyboard_avoider

A lightweight alternative to the Scaffold widget for avoiding the on-screen software keyboard. Automatically scrolls obscured TextField child widgets into view on focus.

keyboard_avoider cover
Latest version
0.2.0
30-day downloads
2.9K
Likes
134
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

keyboard_avoider is a lightweight Flutter package that helps manage on-screen keyboard interactions without relying on Scaffold. It automatically scrolls focused TextField widgets into view when the software keyboard appears, ensuring content remains accessible. Designed for responsive UIs, it provides a simple, efficient solution for maintaining usability across devices and platforms. Ideal for forms and input-heavy interfaces where keyboard overlap can disrupt user experience.

Use cases
  • Form inputs with scrolling
  • Mobile and web app layouts
  • Dynamic content areas
  • Multi-platform apps
  • Text field focus management
  • Avoiding keyboard obscuration
Key features
  • Automatic scroll on focus
  • No Scaffold dependency
  • Cross-platform support
  • Lightweight and minimal
  • Simple API
  • Works with any parent widget
Suitable for
  • Developers seeking lightweight keyboard handling
  • Apps with extensive text input
  • Responsive UI design
  • Projects avoiding Scaffold constraints
  • Teams prioritizing performance and simplicity
Considerations
  • Limited to TextField-focused behavior
  • Does not handle complex nested scroll views
  • May require manual adjustments in custom scroll contexts
  • Not suitable for advanced keyboard interaction logic
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add keyboard_avoider

Categories

Related projects