keyboard_utils

A Flutter plugin for check the keyboard visibility and size.

Licence

sample

Install

Follow this guide

How to use

Add the imports:

import 'package:keyboard_utils/keyboard_utils.dart';
import 'package:keyboard_utils/keyboard_listener.dart';

Create the KeyboardUtils:

KeyboardUtils  _keyboardUtils = KeyboardUtils();

Attach the listener to KeyboardUtils:

_keyboardUtils.add(listener: KeyboardListener(
        willHideKeyboard: () {
          _streamController.sink.add(_keyboardUtils.keyboardHeight);
        },
        willShowKeyboard: (double keyboardHeight) {
          _streamController.sink.add(keyboardHeight);
        }
    ));

Check the sample for more details.

Authors

Isaías Santana
Isaías Santana
Will Filho
Will Filho

Libraries

keyboard_listener
keyboard_options
keyboard_utils