Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard on change listener say visibilty true but height of keyboard still zero #121

Open
eggyot opened this issue Sep 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@eggyot
Copy link

eggyot commented Sep 13, 2022

when keyboardvisibilty detect onchange and say visible is true but when I tried to get height of keyboard is still 0, so I must add delay timer for make sure keyboard is show up and then get the height is not zero again. how to know if keyboard is really show up without timer?

keyboardVisibilityController.onChange.listen((bool visible) {
  print('Keyboard visibility update. Is visible: $visible');
  if(visible){
    Timer(const Duration(seconds: 1), () async {
      print(MediaQuery.of(context).viewInsets.bottom);
    });
  }
});
@eggyot eggyot added the bug Something isn't working label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant