From 137121992abf7562325f4687e1a190e151cc9f0c Mon Sep 17 00:00:00 2001 From: Matthew Patrick <Matthew.535200018@stu.untar.ac.id> Date: Tue, 26 Apr 2022 15:40:52 +0700 Subject: [PATCH] login_form - Fixed Fields Label --- lib/components/login_form.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/components/login_form.dart b/lib/components/login_form.dart index 6bb8475..64170d5 100644 --- a/lib/components/login_form.dart +++ b/lib/components/login_form.dart @@ -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);