From 3ac45a99e8a17302990cc1de31164b4c3c886c4a Mon Sep 17 00:00:00 2001 From: Lulin Yang Date: Tue, 24 Dec 2024 09:46:55 +1300 Subject: [PATCH] small fix --- lib/presentation/settings/views/login_page.dart | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/presentation/settings/views/login_page.dart b/lib/presentation/settings/views/login_page.dart index cb72f2c..bfb4b6b 100644 --- a/lib/presentation/settings/views/login_page.dart +++ b/lib/presentation/settings/views/login_page.dart @@ -70,7 +70,7 @@ class _LoginPageState extends State { ScaffoldMessenger.of(context).showSnackBar( SnackBar( content: Text(viewModel.errorMessage!), - duration: Duration(seconds: 2), + duration: Duration(seconds: 4), backgroundColor: Colors.red, ), ); @@ -308,13 +308,7 @@ class _LoginPageState extends State { alignment: Alignment.centerLeft, child: Padding( padding: const EdgeInsets.only(left: 3.0), - child: Text( - isPasswordValid ? '' : 'Password must be at least 6 characters long', - style: TextStyle( - color: isPasswordValid ? Colors.transparent : Colors.black54, - fontSize: 14.0, - ), - ), + ), ), const SizedBox(height: 20.0),