AbdullahChauhan / custom-dropdown

Custom dropdown widget allows to add highly customizable dropdown widget in your projects. Features includes Search on list data, Network search, Multi-selection and many more.
https://pub.dev/packages/animated_custom_dropdown
BSD 3-Clause "New" or "Revised" License
158 stars 73 forks source link

Keyboard hides Search textfield #51

Open 92sajid110 opened 10 months ago

92sajid110 commented 10 months ago

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 commented 7 months ago

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 commented 4 months ago

@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 commented 4 months ago

@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

jaswantk917 commented 1 month ago

hiding behind keyboard