felangel / felangel/flow_builder
TextFormField's autofocus from a second MaterialPages is not working.
Open
question
waiting for response
- Dominant language
- Dart
- Stars
- 416
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
**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),.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.