From 5c3dbcbd52e957ef0b77728587275ea6a5d710c1 Mon Sep 17 00:00:00 2001
From: Kima <kimavideos97@gmail.com>
Date: Sun, 18 Aug 2024 13:00:40 +0200
Subject: [PATCH] fixed privacy button and back button on new login screen

---
 .../lib/screens/login/login_screen.dart       | 24 ++++++++++---------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/refilc_mobile_ui/lib/screens/login/login_screen.dart b/refilc_mobile_ui/lib/screens/login/login_screen.dart
index 950170d..298da46 100644
--- a/refilc_mobile_ui/lib/screens/login/login_screen.dart
+++ b/refilc_mobile_ui/lib/screens/login/login_screen.dart
@@ -97,9 +97,17 @@ class LoginScreenState extends State<LoginScreen> {
                 children: [
                   // app icon
                   Padding(
-                      padding: const EdgeInsets.only(left: 24, top: 20),
+                      padding: const EdgeInsets.only(left: 24, top: 0),
                       child: Row(
                         children: [
+                          if (showBack)
+                            Material(
+                              type: MaterialType.transparency,
+                              child: showBack
+                                  ? const BackButton(color: Colors.black)
+                                  : const SizedBox(height: 48.0),
+                            ),
+                          if (showBack) const SizedBox(width: 8),
                           Image.asset(
                             'assets/icons/ic_rounded.png',
                             width: 30.0,
@@ -113,12 +121,6 @@ class LoginScreenState extends State<LoginScreen> {
                                 fontWeight: FontWeight.bold,
                                 fontFamily: 'Montserrat'),
                           ),
-                          Material(
-                            type: MaterialType.transparency,
-                            child: showBack
-                                ? BackButton(color: AppColors.of(context).text)
-                                : const SizedBox(height: 48.0),
-                          ),
                         ],
                       )),
                   Stack(
@@ -129,7 +131,7 @@ class LoginScreenState extends State<LoginScreen> {
                         mainAxisAlignment: MainAxisAlignment.end,
                         crossAxisAlignment: CrossAxisAlignment.end,
                         children: [
-                          const SizedBox(height: 21),
+                          const SizedBox(height: 20),
                           CarouselSlider(
                             options: CarouselOptions(
                                 height: MediaQuery.of(context).size.height,
@@ -196,7 +198,7 @@ class LoginScreenState extends State<LoginScreen> {
                         ],
                       ),
                       Container(
-                        height: 310,
+                        height: 330,
                         width: double.infinity,
                         decoration: const BoxDecoration(
                           gradient: LinearGradient(
@@ -298,8 +300,8 @@ class LoginScreenState extends State<LoginScreen> {
                                 onTap: () => PrivacyView.show(context),
                                 child: Text(
                                   'privacy'.i18n,
-                                  style: TextStyle(
-                                    color: AppColors.of(context).loginSecondary,
+                                  style: const TextStyle(
+                                    color: Colors.black,
                                     fontWeight: FontWeight.w500,
                                     fontSize: 14.0,
                                   ),