Skip to content
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

fix: correct fields tab traverse #11

Conversation

Codeaview
Copy link
Contributor

Connection with issue(s)

Resolve issue #5

Testing and Review Notes

Hello, while developing multi-platform Flutter app with the awesome LoForm I have encountered a problem with UX (especially on desktop). Changing between fields with tab key did not work, because in lo_field.dart Focus was the child of FocusScope which 'traps' the tab traversal to the FocusNodes under given FocusScope. The solution was to remove FocusScope widget and add skipTraversal = true to the Focus widget (TextField already has FocusNode attached, therefore the Focus that we add does not need to be available to be focused (otherwise one tab click removes the Focus from the field and only then the next tab click moves the focus to the next FocusNode.))

To test this functionality example project can be compiled on any platform and then tab key can be used to change between fields.

All current unit tests still do pass.

To Do

  • double check the original issue to confirm it is fully satisfied
  • add testing notes and screenshots in PR description to help guide reviewers
  • add unit test

@YoussefRaafatNasry YoussefRaafatNasry changed the title Fix tab traversal of fields fix: correct fields tab traverse Aug 31, 2022
@YoussefRaafatNasry YoussefRaafatNasry merged commit 51b6819 into YoussefRaafatNasry:master Aug 31, 2022
@YoussefRaafatNasry
Copy link
Owner

Thanks @Leviatanus for fixing this!

@YoussefRaafatNasry YoussefRaafatNasry linked an issue Aug 31, 2022 that may be closed by this pull request
@Codeaview
Copy link
Contributor Author

Glad that I could have helped! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tab support on web and more
2 participants