keyboard_dismisser
3.0.0, released 5 years ago by an unverified publisher
A Flutter widget to hide the keyboard when performing gestures outside of it.
What it does
KeyboardDismisser is a stateless widget that listens for gestures outside of the active text input and hides the software keyboard automatically. It supports customizable gestures including taps and directional swipes, and can be applied globally by wrapping the MaterialApp or locally to a Scaffold.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple way to dismiss the software keyboard when users tap or swipe outside input fields.
- You want to apply keyboard dismissal globally to your entire app or to specific pages.
Skip it when
- You require complex custom focus management beyond basic gesture dismissal.
Strengths
- Supports multiple gestures at the same time, including directional swipes.
- Can wrap the entire app or individual pages easily.
- Lightweight and straightforward to use.
Weaknesses
- Limited to gesture-based keyboard dismissal.
- Not documented for handling advanced custom focus nodes explicitly.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Widget build(BuildContext context) => KeyboardDismisser(
child: Scaffold(
body: ...,
),
);Alternatives
Packages that do the same job and could replace keyboard_dismisser.
- auto_hide_keyboard
Automatically hides the soft keyboard when tapping outside text fields or scrolling.
47Compare - hit
Decouple Flutter layout size from hit-test size to deliver taps outside parent bounds.
68Compare - custom_interactive_viewer
Customizable alternative to InteractiveViewer with gesture, rotation, and keyboard controls
62Compare - keyboard_visibility_pro
Detects soft-keyboard open and close status in Flutter applications.
39Compare