isKeyboardShowing property

bool get isKeyboardShowing

Returns true if keyboard is visible

Implementation

bool get isKeyboardShowing => MediaQuery.of(this).viewInsets.bottom > 0;