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), ), ); } 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/