custom-dropdown icon indicating copy to clipboard operation
custom-dropdown copied to clipboard

Keyboard hides Search textfield

Open 92sajid110 opened this issue 1 year ago • 3 comments

Hello, Hope you are good. I am using your nice package in my projects but at one place i found an issue. 1.CustomDropdown<String>.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<String>.search()to autofocus on textfield after opening dropdown

Thanks

92sajid110 avatar Jan 07 '24 07:01 92sajid110

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.

hbatalhaStch avatar Apr 09 '24 17:04 hbatalhaStch

@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 avatar Jul 17 '24 06:07 KabaDH

@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: https://github.com/hbatalhaStch/custom-dropdown/commit/8bbda70a9e0e615d7e7ec0ab2c571d87742d98cf

hbatalhaStch avatar Jul 17 '24 15:07 hbatalhaStch