I found this package in flutter for dropdowns multiselect-dropdown. It was all working fine and i needed some modifications in it so I forked it to make it more customizable like background color and all my-version.
The problems started arising when i was working on the desktop version and I checked the original repo also contains that issue. The issue is when user is opening a dropdown using mouse and cliclking out of thr dropdown ity is working fine but when the user is using tab to traverse between the dropdowns For details please see this issue that I have raised on the original repo.
I tried to debug and it and went to the root cause of the issue. when user is clicking on any dropdown the dropdown is focussed and it is opened and when user presses tab again the same dropdown is focused and it is opened again, only after that if you press tab it will navigate to next dropdown closing only last dropdown opened and leaving the first dropdown open which becomes irresponsive and the only way to use the app then is to hot restart the app.
I noticed when user clicks on the dropdown the focusnode that wraps the dropdown is triggered and when user presses tab another focus which is focussed whoose parent focus is the first one, but I havent used any focusNode inside that paricularly.
I am not very experienced with flutter focus traversal, so I am facing a problem here is there a way in which I can make it to not focus traversal to not go inside dropdown focus or anything else
What I have tried-
I tried FocusTraversalPolicy and playing with the fields inside Focus widget but didnt get any good results