fixed privacy button and back button on new login screen

This commit is contained in:
Kima 2024-08-18 13:00:40 +02:00
parent cd5f86db00
commit 5c3dbcbd52

View File

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