Steps to Reproduce
- Create a
TextFormField with initialValue = _var
- In the
initState() of the StatefulWidget it is in set the _var async and call setState()
- The
TextFormField is not filled with the _var
Note: it works fine with when the _var is set sync instead of async.
Workaround for now
Use a TextEditingController() and set it's text attribute in the async callback rather than setting the initialValue attached to a key in the state.