Skip to content
pubscout

keyboard_actions

5.0.3, released 8 weeks ago by diegoveloper.com

Add a keyboard toolbar with Done, navigation arrows, and custom panels in Flutter.

WASM-ready
$ flutter pub add keyboard_actions
Source repository

What it does

Provides a floating toolbar in an Overlay for forms and input fields. It automatically handles field discovery, Prev/Next navigation, and scrolling focused fields into view without scroll hacks.

AI-written summary of version 5.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a Done or Submit button above the virtual keyboard in forms or lists.
  • You want automatic Previous and Next field navigation without manually managing FocusNodes.
  • You are integrating custom keyboards or number pads.

Skip it when

  • You are building a desktop-only application where virtual keyboards are not used.

Strengths

  • Zero FocusNode setup required for basic usage with automatic field discovery.
  • Does not hijack scrolling or require setting resizeToAvoidBottomInset to false.
  • Supports theming via ThemeExtension and custom keyboards per field.

Weaknesses

  • Relies on standard text editing and focus mechanics, which might require extra wiring for non-standard text inputs.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Scaffold(
  body: KeyboardActions.done(
    child: ListView(
      padding: const EdgeInsets.all(20),
      children: const [
        TextField(decoration: InputDecoration(labelText: 'Email')),
        TextField(decoration: InputDecoration(labelText: 'Password'), obscureText: true),
      ],
    ),
  ),
)

Alternatives

Packages that do the same job and could replace keyboard_actions.

Works with

Packages commonly used together with keyboard_actions: ones it builds on, ones built on it, and its own family.