From b916a8081243a8048258c987f168b0f00fec499b Mon Sep 17 00:00:00 2001 From: asermohamed1 <153523890+asermohamed1@users.noreply.github.com> Date: Fri, 12 Dec 2025 23:13:18 +0200 Subject: [PATCH 1/2] fixed login_screen --- lib/features/auth/view/screens/Log_In/Login_Screen.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/features/auth/view/screens/Log_In/Login_Screen.dart b/lib/features/auth/view/screens/Log_In/Login_Screen.dart index 0c62509..d8ed867 100644 --- a/lib/features/auth/view/screens/Log_In/Login_Screen.dart +++ b/lib/features/auth/view/screens/Log_In/Login_Screen.dart @@ -48,6 +48,7 @@ class _LoginScreenState extends ConsumerState { void showErrorToast(String message) { if (!mounted) return; + ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).showSnackBar( SnackBar( content: Text( @@ -62,11 +63,8 @@ class _LoginScreenState extends ConsumerState { backgroundColor: Palette.greycolor, behavior: SnackBarBehavior.floating, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), - margin: EdgeInsets.symmetric( - horizontal: MediaQuery.of(context).size.width * 0.15, - vertical: MediaQuery.of(context).size.height * 0.4, - ), - duration: const Duration(seconds: 3), + margin: const EdgeInsets.only(left: 20, right: 20, bottom: 20), + duration: const Duration(seconds: 2), ), ); } From d6fd5de8b510f073e4b211d2ddb4c241ed73b43f Mon Sep 17 00:00:00 2001 From: asermohamed1 <153523890+asermohamed1@users.noreply.github.com> Date: Fri, 12 Dec 2025 23:51:31 +0200 Subject: [PATCH 2/2] fixed some issues --- .env | 2 +- test/.env | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 test/.env diff --git a/.env b/.env index c89bd06..d5519b9 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ # API_URL=https://app-dbef67eb-9a2e-44fa-abff-3e8b83204d9c.cleverapps.io/ # API_URL=https://node.shoy.publicvm.com/ API_URL=https://node.shoy.publicvm.com/ -API_test_URL=https://example.com/ +# API_test_URL=https://example.com/ # API_URL=https://wanita-hypernormal-cherise.ngrok-free.dev/ # API_URL=https://avah-pollinical-randal.ngrok-free.dev/ # API_URL=https://0f9eef01f130.ngrok-free.app/ diff --git a/test/.env b/test/.env deleted file mode 100644 index 4b1f84b..0000000 --- a/test/.env +++ /dev/null @@ -1 +0,0 @@ -API_URL=https://example.com/