-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having some issues on desktop plaforms #89
Comments
I encountered a recurring problem while utilizing the MultiSelectDropDown widget within my Flutter application. Specifically, when I select certain options and subsequently press the ‘TAB’ key, the entire interface becomes unresponsive, necessitating a complete app reload to restore functionality. |
I am trying to debug it
And in multiselect_dropdown.dart
Now trying Case 2 when user clicks on textfield and then pressed tab to navigate,
Focus is working as it should Now, CASE 3, when user clicks on the first dropdown and then tries to navigate with tab key
In the logs we can clearly see overlay for dropdown 0 is built two times when user clicks on it |
The main issue here is when user clicks on the dropdown the _focusNode is foccussed, but when the user presses tab key another focusNode which has the parent focusNode as the original focusNode _focusNode that is used for the dropdown widget. To solve this issue we can restrict focus to go inside of the _focuNode or something else |
Check if the problem exists in the latest version. v3.0.0 |
I am facing some issues on desktop platforms using this library.
In a screen I have used a gridview to wrap 5-6 Multiselect dropdowns
CASE 1: When i click on the first dropdown and then select any options and tap outside , everthing is working perfectly as it should.
CASE 2: Now suppose there is a textfield before the the first gridview and i click on the textfield and press TAB key to navigate all the nest textfields and dropdown, it is again working perfectly and as i press tab each dropdown is opening and closing as i press next tab, but i cannot access options from there using up and down keys but it is a separate thing and not much necessary.
NOW THE ISSUE ARISES
CASE 3: Now when i click on the first dropdown and then press TAB key to navigate , the first dropdown overlay is not closing and now when it is stuck you cannot make it unstuck by clicking on the screen.
I did some debugging there , i can see the hasFocus value changing but still the overlay remains opened and cannot be closed
Now if i pop this screen the overlay that was stuck moves to the top left of the screen and it can only be fixed by hot-restart
Is there any fix to it?
Minimalistic code to show the error
The text was updated successfully, but these errors were encountered: