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
[Bug] Opening drowdown after focus on other field. #28
Comments
I just came across this issue, and I was thinking to post the issue :) But it is already here ... Thanks |
@Danaru87 Thanks for reporting this
I need a way to detect if the keyboard is visible but I can't find any that works for now, if you get a way to do it let me know and fix it. I will try to look at this again the day after tomorrow. |
Strange behavior, using MediaQuery.of(context).viewInsets.bottom != 0 worked for me. This plugin work to detect keyboard opened or closed: https://github.com/IsaiasSantana/keyboard_utils But, whith dropdown opened, if you tap outside the dropdown, focus stay on it and dont close option list. I'm working on a solution. |
- Fix keyboard detection - Add boolean to store if focus was requested after closing keyboard
PR ready #32 . The code is not super clean, if you have any suggestions I can make the necessary changes. For those who can't wait for a new release, you can refer my repository into your pubspec.yaml: flutter_form_bloc:
git:
url: https://github.com/UPrefer/form_bloc.git
path: packages/flutter_form_bloc |
Fixed in form_bloc 0.10.4. |
P.D. @Danaru87 @jawadsahil Checkout pinned issues |
When you have a Dropdown,
if you focus another field, when coming back to list will open => close very fast the list and close => open the keyboard giving focus to the field.
Seems to be a bug of https://github.com/adee42/flutter_keyboard_visibility, onChange never fired.
in dropdown_field_bloc_builder.dart, lines 268 - 275, changing:
by
solved this bug.
Solution based on comments from the link into your TODO comment. (line 267)
flutter/flutter#18672 (comment)
The text was updated successfully, but these errors were encountered: