keyboard_insets_platform_interface 1.0.0
keyboard_insets_platform_interface: ^1.0.0 copied to clipboard
Platform interface for the keyboard_insets plugin.
1.0.0 #
✨ Initial release of Shared platform interface #
Features
-
Real-time keyboard height updates
- Emits keyboard height on every animation frame.
- Stays perfectly in sync with native animations.
-
Keyboard state stream
- Provides visibility (
isVisible) and animation (isAnimating) status. - Automatically starts/stops native listeners when streams are active or paused.
- Provides visibility (
-
Persistent Safe Area API
- Added
PersistentSafeAreaBottomfor real-time bottom safe area tracking. - Stays stable during keyboard animations.
- Exposes:
ValueNotifier<double>? safeAreastartObserving()stopObserving()
- Added
-
PersistentSafeArea widget
- A drop-in alternative to Flutter’s
SafeAreathat keeps bottom padding stable while the keyboard animates. - Supports manual or automatic lifecycle handling via
handleObserver.
- A drop-in alternative to Flutter’s
-
Cross-platform support
- iOS: Uses native UIKit safe area and keyboard frame observers.
- Android: Uses
WindowInsetsAnimationCompatfor high-frequency keyboard insets. - Web: Fallback implementation using browser viewport APIs.
🧩 Packages #
This release introduces a modular architecture:
| Package | Description |
|---|---|
keyboard_insets |
Main plugin (public API + widget layer) |
keyboard_insets_mobile |
Native iOS + Android FFI implementations |
keyboard_insets_web |
Web fallback implementation |
keyboard_insets_platform_interface |
Shared platform interface |