keyboard_hider library

Library that simplifies hiding the keyboard in Flutter apps.

The library includes the KeyboardHider widget with optional HideMode to either unfocus the current FocusScope, or to use SystemChannels.textInput to hide the keyboard.

It also includes the unfocus and hideTextInput helper methods that can hide implementation details and make the code more expressive.

Classes

KeyboardHider
A widget that upon tap attempts to hide the keyboard.

Enums

HideMode
How to hide the keyboard.

Properties

textInput MethodChannel
getter/setter pair

Functions

hideTextInput() Future<void>
Hide keyboard by invoking the "TextInput.hide" method on SystemChannels.textInput.
unfocus(BuildContext context) → void
Hide keyboard by un-focusing the current context's FocusScopeNode.