FLUTTER ECOSYSTEM

keyboard_detection

A Flutter plugin to easily detect keyboard visibility using the bottom view inset.

Latest version
0.8.1
30-day downloads
12K
Likes
29
Pub points
160

Package Overview

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

Overview

The keyboard_detection package is a Flutter plugin that simplifies the detection of keyboard visibility by monitoring the bottom view inset. It provides a reliable way to determine when the keyboard appears or disappears on various platforms, including Android, iOS, Web, macOS, Windows, and Linux. This helps developers adjust UI layouts dynamically for better user experience during input interactions. The plugin integrates seamlessly with existing Flutter apps and requires minimal setup. It's particularly useful in forms, chat interfaces, and any scenario where responsive layout adjustments are needed based on keyboard state.

Use cases
  • Dynamic form layout adjustment
  • Chat interface responsiveness
  • Input field focus management
  • Responsive UI for mobile and desktop
  • Handling keyboard overlaps
  • Auto-scrolling to focused fields
Key features
  • Detects keyboard visibility via bottom view inset
  • Cross-platform support (Android, iOS, Web, macOS, Windows, Linux)
  • Simple API integration
  • Real-time keyboard state updates
  • Minimal configuration required
  • Works with both physical and on-screen keyboards
Suitable for
  • Flutter developers building input-heavy apps
  • Apps requiring adaptive UI layouts
  • Developers targeting multiple platforms
  • Projects with dynamic form or chat interfaces
  • Teams seeking lightweight keyboard detection
Considerations
  • May require additional handling for complex nested scroll views
  • Not suitable for detecting keyboard height directly
  • Behavior may vary slightly across different platform implementations
  • Best used with Scaffold or similar layout structures
  • Limited to keyboard visibility; does not detect keyboard type or language
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add keyboard_detection

Categories

Source repository

Related projects

No data available yet.