keyboard_service
2.1.0, released 7 days ago by an unverified publisher
Keyboard visibility tracking and automatic dismissal without native plugins
What it does
Allows checking if the on-screen keyboard is visible and explicitly dismissing it. Provides a wrapper widget to automatically dismiss the keyboard when tapping outside of a text field.
AI-written summary of version 2.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to automatically dismiss the on-screen keyboard when tapping outside of text fields
- You need to programmatically check if the keyboard is visible
- You want a pure Flutter solution without native platform plugins
Skip it when
- You need complex keyboard animation event handling or custom insets manipulation
- You are not using Scaffolds that fit the wrapper widget pattern
Strengths
- No native plugins required
- Simple API with KeyboardService and KeyboardAutoDismiss widget
- Cross-platform support across all Flutter platforms
Weaknesses
- Limited to basic visibility checks and dismissal
- Relies on wrapping Scaffolds for auto-dismissal functionality
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
return KeyboardAutoDismiss(
scaffold: Scaffold(
appBar: AppBar(
title: Text('Keyboard Service Example'),
),
),
);Alternatives
Packages that do the same job and could replace keyboard_service.
- keyboard_visibility_pro
Detects soft-keyboard open and close status in Flutter applications.
39Compare - flutter_keyboard_visibility_temp_fork
Detects whether the on-screen keyboard is visible on Android and iOS.
78Compare - keyboard_detection
Detect keyboard visibility using bottom view inset in Flutter
56Compare - swipeable_tile
Flutter widget to dismiss or trigger actions with animated background and corners.
50Compare