FLUTTER ECOSYSTEM

flutter_persistent_keyboard_height

Flutter package to get keyboard height. Can be used to display a sticker/emoji modal with correct height.

flutter_persistent_keyboard_height cover
Latest version
1.0.5
30-day downloads
44
Likes
33
Pub points
150

Package Overview

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

Overview

A Flutter package that provides the height of the on-screen keyboard persistently, enabling accurate UI adjustments. It's particularly useful for positioning elements like sticker or emoji modals relative to the keyboard. The package works across both Android and iOS platforms, ensuring consistent behavior. It listens to keyboard state changes and exposes the current height through a stream, making it easy to integrate into responsive layouts.

Use cases
  • Adjusting UI layout when keyboard appears
  • Positioning modals above the keyboard
  • Ensuring content remains visible during input
  • Creating chat interfaces with dynamic input areas
  • Building forms with real-time keyboard awareness
Key features
  • Real-time keyboard height monitoring
  • Cross-platform support (Android & iOS)
  • Stream-based API for reactive updates
  • Minimal setup and integration
  • Accurate height detection even during animation
Suitable for
  • Chat app developers
  • Form builders
  • UI components requiring keyboard awareness
  • Developers creating input-heavy interfaces
  • Apps with floating action buttons near the keyboard
Considerations
  • Requires proper disposal of streams to avoid memory leaks
  • May need additional logic for edge cases like split keyboards
  • Not suitable for static keyboard height scenarios
  • Depends on platform-specific keyboard events
  • Should be tested on multiple devices and OS versions
Supported platformsAndroidiOS

Install package

flutter pub add flutter_persistent_keyboard_height

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects

No data available yet.