login_form - Fixed Fields Label
This commit is contained in:
parent
f09c828864
commit
137121992a
1 changed files with 4 additions and 4 deletions
|
@ -68,8 +68,8 @@ class LoginFormState extends State<LoginForm> {
|
|||
minWidth: double.infinity,
|
||||
height: 35,
|
||||
onPressed: () async {
|
||||
if (_formKey.currentState!
|
||||
.fields["Email Address"]!.value ==
|
||||
if (_formKey.currentState!.fields["Email"]!
|
||||
.value ==
|
||||
'' ||
|
||||
_formKey.currentState!.fields["Password"]!
|
||||
.value ==
|
||||
|
@ -77,8 +77,8 @@ class LoginFormState extends State<LoginForm> {
|
|||
showAlertDialog(context);
|
||||
} else {
|
||||
var statusCode = await loginPost(
|
||||
email: _formKey.currentState!
|
||||
.fields["Email Address"]!.value,
|
||||
email: _formKey
|
||||
.currentState!.fields["Email"]!.value,
|
||||
password: _formKey.currentState!
|
||||
.fields["Password"]!.value);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue