FLUTTER ECOSYSTEM

flutter_keyboard_size

A straightforward and convenient provider that helps get info about - keyboard height, is it open or not, set bool value is screen small or not.

flutter_keyboard_size cover
Latest version
1.0.1
30-day downloads
31K
Likes
67
Pub points
160

Package Overview

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

Overview

flutter_keyboard_size is a lightweight Flutter package that provides real-time information about the on-screen keyboard, including its height and whether it's open. It also helps determine if the screen size is small, useful for responsive UI adjustments. The package offers a simple provider-based API to access keyboard state and dimensions across multiple platforms, ensuring consistent behavior on Android, iOS, Web, macOS, Windows, and Linux. Ideal for apps needing dynamic layout adaptation when the keyboard appears or disappears.

Use cases
  • Adjusting UI layout when keyboard opens
  • Detecting keyboard visibility in forms
  • Responsive design for small screens
  • Handling input field positioning
  • Dynamic padding based on keyboard height
Key features
  • Real-time keyboard height detection
  • Keyboard open/close state monitoring
  • Screen size classification
  • Provider-based state management
  • Cross-platform support
  • Simple API integration
Suitable for
  • Form-heavy applications
  • Chat or messaging interfaces
  • Mobile-first UIs
  • Responsive layouts
  • Apps requiring dynamic input handling
Considerations
  • May require rebuilds on state changes
  • Limited to keyboard-related metrics
  • Not suitable for complex gesture detection
  • Depends on platform-specific keyboard events
  • Best used with state management like Provider
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_keyboard_size

Categories

Source repository

Related projects