Ensure that the initial value of email and name is set correctly
This commit is contained in:
parent
0c86a7f29a
commit
d4ab59dd79
1 changed files with 4 additions and 2 deletions
|
@ -21,6 +21,8 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|||
|
||||
@override
|
||||
void initState() {
|
||||
_email = _config.getEmail();
|
||||
_name = _config.getName();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
@ -60,7 +62,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|||
autocorrect: false,
|
||||
keyboardType: TextInputType.text,
|
||||
textCapitalization: TextCapitalization.words,
|
||||
initialValue: _config.getName(),
|
||||
initialValue: _name,
|
||||
),
|
||||
Padding(padding: EdgeInsets.all(8)),
|
||||
TextFormField(
|
||||
|
@ -75,7 +77,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|||
},
|
||||
autocorrect: false,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
initialValue: _config.getEmail(),
|
||||
initialValue: _email,
|
||||
),
|
||||
Padding(padding: EdgeInsets.all(12)),
|
||||
Container(
|
||||
|
|
Loading…
Add table
Reference in a new issue