Skip to content
pubscout

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.

WASM-ready
$ flutter pub add keyboard_dismisser
Source repository

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.