flutter_keyboard_visibility icon indicating copy to clipboard operation
flutter_keyboard_visibility copied to clipboard

Only works second time keyboard is shown

Open sgehrman opened this issue 3 years ago • 3 comments

KeyboardVisibilityBuilder( builder: (context, isKeyboardVisible) {

I show the keyboard the first time. Trigger this view, it returns 'false'. Continues to show false until I hide and reshow the keyboard.

sgehrman avatar May 19 '21 06:05 sgehrman

I'm on Android if that matters.

sgehrman avatar May 19 '21 06:05 sgehrman

this works better:

if (MediaQuery.of(context).viewInsets.bottom != 0) print('keyboard visible');

sgehrman avatar May 19 '21 07:05 sgehrman

Does this happen in the sample project in this repo? What version of the lib are you using?

MisterJimson avatar May 19 '21 12:05 MisterJimson

Please reopen with reproduction steps and a sample project if this is still happening. Unable to reproduce.

MisterJimson avatar Sep 20 '22 22:09 MisterJimson