felangel / felangel/flow_builder

TextFormField's autofocus from a second MaterialPages is not working.

Open
#119 3 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.