You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Once the first textformfield gets focused then the next one from the second MaterialPage is not getting autofocused.
To Reproduce
Let's say for example we have 2 MaterialPages:
[
MaterialPage(child: FirstColumnTextField()),
MaterialPage(child: SecondColumnTextField(autofocus: true)),
] Expected behavior
Second textfield gets autofocused as the TextFormField is set. The only fix for now is to set the maintainState to false to the first MaterialPage as follows: MaterialPage(child: FirstColumnTextField(), maintainState: false),.
The text was updated successfully, but these errors were encountered:
@arnoldmitrica the code you shared isn't a minimal reproduction sample because we can't run it. Can you please share a complete, runnable main.dart or a link to a GitHub repo so we can easily reproduce the issue locally? Thanks!
Describe the bug
Once the first textformfield gets focused then the next one from the second MaterialPage is not getting autofocused.
To Reproduce
Let's say for example we have 2 MaterialPages:
[
MaterialPage(child: FirstColumnTextField()),
MaterialPage(child: SecondColumnTextField(autofocus: true)),
]
Expected behavior
Second textfield gets autofocused as the TextFormField is set. The only fix for now is to set the maintainState to false to the first MaterialPage as follows: MaterialPage(child: FirstColumnTextField(), maintainState: false),.
The text was updated successfully, but these errors were encountered: