Skip to content

[General]: Focus behaviour navigating using tab on conditional fields #1290

Closed
@marcosgcd

Description

@marcosgcd

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.1.0

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

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

  1. Get forked repo
  2. See Video for detailed reproduction

Aditional information

Bildschirmaufnahme.2023-08-30.um.18.15.24.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions