KeyboardUtils class

Utility functions for keyboard handling

Constructors

KeyboardUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

dismissKeyboardForBottomSheet(BuildContext context) → void
Dismisses keyboard when bottom sheet is shown
dismissKeyboardForDialog(BuildContext context) → void
Dismisses keyboard when dialog is shown
getKeyboardHeight(BuildContext context) double
Gets the keyboard height
hideKeyboard(BuildContext context) → void
Hides the keyboard if it's currently visible
hideKeyboardAndUnfocus(BuildContext context) → void
Hides the keyboard and removes focus from any focused widget
isKeyboardVisible(BuildContext context) bool
Checks if the keyboard is currently visible
showKeyboard(BuildContext context, FocusNode focusNode) → void
Shows the keyboard for a given text field