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 hides Search textfield #51

Open
92sajid110 opened this issue Jan 7, 2024 · 4 comments
Open

Keyboard hides Search textfield #51

92sajid110 opened this issue Jan 7, 2024 · 4 comments

Comments

@92sajid110
Copy link

Hello,
Hope you are good.
I am using your nice package in my projects but at one place i found an issue.
1.CustomDropdown.search() is place at bottom of screen assume at 70% & 80% of screen
so when textfield is clicked keyboard hides search field and user can't see what is typing
The layout is like this that i can't move it to top as in top there is other dropdown and all linked with data validation.
So i added scaffold,singlechildscrollview but no effect.
Respected behaviour is scroll to top of keyboard.

  1. In same page there is an textfield and after that there is all dropdowns with search.
    So basically user enter value in textfield and click on below dropdown, so i want a callback or any params to dismiss or perform any task whenever user taps on dropdown before opening dropdown this way i can dismiss keyboard or unfocus above keyboard.

  2. If possible add params to autofocus(bool) on CustomDropdown.search()to autofocus on textfield after opening dropdown

Thanks

@hbatalhaStch
Copy link
Contributor

I forked the project and made changes in the dropdown overlay so that it always shows at the top when I wanted: https://github.com/hbatalhaStch/custom-dropdown/tree/project

I don't know if you still have this issue but it might be useful for new comers.

@KabaDH
Copy link
Contributor

KabaDH commented Jul 17, 2024

@hbatalhaStch hi! Would you be so kind as to share the link to the commit with your workaround, please? I couldn't find it in your repo.

@hbatalhaStch
Copy link
Contributor

hbatalhaStch commented Jul 17, 2024

@hbatalhaStch hi! Would you be so kind as to share the link to the commit with your workaround, please? I couldn't find it in your repo.

@KabaDH here it is: hbatalhaStch@8bbda70

Veselchak-U added a commit to Veselchak-U/custom-dropdown that referenced this issue Oct 7, 2024
@jaswantk917
Copy link

hiding behind keyboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants