Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Package/Plugin version
9.1.0
Platforms
- AndroidiOSLinuxMacOSWebWindows
Flutter doctor
Flutter doctor
[✓] Flutter (Channel stable, 3.13.1, on macOS 13.4.1 22F770820d darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.81.1)
[✓] Connected device (2 available)
[✓] Network resources
• No issues found!
Minimal code example
Code sample
Current Behavior
When conditional rendering a FormField it messes up Somehow the order of the tab
navigation. See video and forked repo.
Age2 should focus to Age3 but Appointment Time gets focused instead
Expected Behavior
The correct widget should be focused when navigating with tab
Steps To Reproduce
- Get forked repo
- See Video for detailed reproduction
Activity
marcosgcd commentedon Aug 30, 2023
Seams to be a Flutter issue and not FormBuilder. I replaced FormBuilderTextField with TextField and the issue still persists.
marcosgcd commentedon Aug 30, 2023
If I only use TextFields and nothing else it works fine. So maybe it is show how related to the FormBuilder widgets?
khirsig commentedon Sep 20, 2023
We are trying to solve similar problems.
Please join our discussion at #1297 regarding this topic.
[-][General]: Strange Focus behaviour navigating using tab[/-][+][General]: Focus behaviour navigating using tab on conditional fields[/+]deandreamatias commentedon Jan 6, 2025
@marcosgcd please take a look if the prerelease version 10.0.0-dev.1 solve this
Thanks