icemanbsi / searchable_dropdown

MIT License
107 stars 162 forks source link

keyboard always show up. #58

Open brainunknown opened 4 years ago

brainunknown commented 4 years ago

Hi, first of all, let me thank the developer for this great and useful flutter package.

The keyboard seems to always show up when the dropdownMenu button is pressed. Can it be possible to only show the keyboard when the user presses the search input TextField?

I took a look at the package's code and it seems that autofocus: true is calling the keyboard, right? How to avoid this?

Thanks, Ricardo

DavidAriza commented 4 years ago

Hey, I'm feeling the same, by any chance, did you find some work around?

brainunknown commented 4 years ago

You can copy the whole code for you and change autofocus: to false for testing your side of the app. But this way you no longer will receive updates and new stuff that the original plugin might receive. It would be great if owner or someone provide an upgraded version with autofocus accessible from the outside. I don´t know how to help the developer on this task yet.

slavap commented 4 years ago

yes, autofocus control as widget property is really needed.

utkarshmarwaha commented 4 years ago

I have added a PR with isAutoFocus option to switch on and off keyboard by default.

daybson commented 4 years ago

Any new status about this?

utkarshmarwaha commented 4 years ago

@kazyamof

Any new status about this?

You can check my branch here,

https://github.com/utkarshmarwaha/searchable_dropdown/tree/keyboard_off_default

daybson commented 4 years ago

@kazyamof

Any new status about this?

You can check my branch here,

https://github.com/utkarshmarwaha/searchable_dropdown/tree/keyboard_off_default

Nice, well done!