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
