searchable_dropdown icon indicating copy to clipboard operation
searchable_dropdown copied to clipboard

keyboard always show up.

Open brainunknown opened this issue 4 years ago • 7 comments

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

brainunknown avatar Apr 27 '20 20:04 brainunknown

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

DavidAriza avatar May 03 '20 02:05 DavidAriza

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.

brainunknown avatar May 04 '20 22:05 brainunknown

yes, autofocus control as widget property is really needed.

slavap avatar May 09 '20 08:05 slavap

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

utkarshmarwaha avatar May 29 '20 16:05 utkarshmarwaha

Any new status about this?

daybson avatar Jun 11 '20 15:06 daybson

@kazyamof

Any new status about this?

You can check my branch here,

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

utkarshmarwaha avatar Jun 11 '20 16:06 utkarshmarwaha

@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!

daybson avatar Jun 11 '20 21:06 daybson