Skip to content
pubscout

keyboard_service

2.1.0, released 7 days ago by an unverified publisher

Keyboard visibility tracking and automatic dismissal without native plugins

WASM-ready
$ flutter pub add keyboard_service
Source repository

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.