flutter_interactive_keyboard 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 73

Flutter Interactive Keyboard #

A way to mimic the IOS interactive dismissable keyboard in Flutter. If you're shipping to Android the behavior will sill be applied without animation due to the Android keyboard limitations.

This plugin is still in development, if you'd like to contribute PRs are welcomed.

How to use it #

The KeyboardManagerWidget defines the area where the drag is enabled, the touch are passed to the widget below in order to permit both scroll and drag to dismiss. The focusNode of the textfield is needed to manage the keyboard opening and closing.

See the full example to see a complete implementation.

  focusNode: _focusNode,
  child: ListView.builder(
    itemCount: 100,
    itemBuilder: (context,index){
      return ListTile(
        title: Text("element $index"),

Advanced #

Change focusNode #

If your app has more than one TextField you can change the current FocusNode from the KeyboardManagerWidgetState as follows:

// Init variable
GlobalKey<KeyboardManagerWidgetState> _key = GlobalKey();

// In the build method
  key: _key,

// Wherever you like
_key.currentState.substituteFocusNode = newFocusNode;

0.1.1 #

  • First stable version
  • Added keyboard visibility listeners

0.0.1+1 #

  • Hot fix - Android error fixed

0.0.1 #

  • First release of the package. An interactive way to interact with the virtual keyboard. On IOS devices the intraction is similar to the interactive keyboard dismiss of UIScrollViews


flutter_interactive_keyboard_example #

Demonstrates how to use the flutter_interactive_keyboard plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_interactive_keyboard: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_interactive_keyboard/flutter_interactive_keyboard.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Nov 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/src/keyboard_manager.dart. (-0.50 points)

Analysis of lib/src/keyboard_manager.dart reported 1 hint:

line 174 col 7: 'onPointerExit' is deprecated and shouldn't be used.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies