Overview
The keyboard_height_plugin is a Flutter package that provides real-time updates on the height of the on-screen keyboard before it appears on Android and iOS devices. It emits the keyboard height as it's about to be displayed, enabling developers to adjust UI layouts dynamically for better user experience. This plugin is particularly useful for forms or input fields where content might be obscured by the keyboard. It works seamlessly across both major mobile platforms and integrates easily via pub.dev. The plugin is lightweight and focused solely on keyboard height detection without additional features.
Use cases
- Dynamic form layout adjustment
- Preventing input field overlap
- Real-time UI responsiveness
- Mobile app keyboard awareness
- Optimizing screen space during input
Key features
- Emits keyboard height before display
- Cross-platform (Android & iOS)
- Lightweight and focused
- Simple integration via pub.dev
- No extra dependencies
Suitable for
- Developers building input-heavy apps
- Apps requiring responsive UIs
- Form-based mobile applications
- Projects needing precise keyboard feedback
- Flutter apps targeting both iOS and Android
Considerations
- Requires manual handling of layout changes
- Limited to keyboard height only
- Does not support custom keyboards
- No built-in animation support
- May need additional state management