From 5ea3264474dd61b1d1c0dbf146e526744a6e190c Mon Sep 17 00:00:00 2001 From: Username1548 Date: Thu, 6 Feb 2025 15:20:51 +0700 Subject: [PATCH] fixed auth screen --- .../auth/auth_screen/auth_screen.dart | 53 ++++++++++--------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/lib/features/auth/auth_screen/auth_screen.dart b/lib/features/auth/auth_screen/auth_screen.dart index 31169305..914398f1 100644 --- a/lib/features/auth/auth_screen/auth_screen.dart +++ b/lib/features/auth/auth_screen/auth_screen.dart @@ -9,6 +9,7 @@ import 'package:eatvio_app/core/widgets/custom_text_form_field.dart'; import 'package:eatvio_app/features/bottom_navigation_bar/presentation/bloc/profile_avatar_cubit/profile_avatar_cubit.dart'; import 'package:eatvio_app/generated/l10n.dart'; import 'package:eatvio_app/core/theme/theme_helper.dart'; +import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_native_splash/flutter_native_splash.dart'; @@ -102,12 +103,12 @@ class _AuthScreenState extends State { FlutterNativeSplash.remove(); final s = S.of(context); - return Scaffold( - appBar: AppBar( - toolbarHeight: 0, - ), - body: WebViewWidget(controller: _controller), - ); + // return Scaffold( + // appBar: AppBar( + // toolbarHeight: 0, + // ), + // body: WebViewWidget(controller: _controller), + // ); return Scaffold( appBar: AppBar( @@ -157,7 +158,7 @@ class _AuthScreenState extends State { }, child: SvgPicture.asset( ImageConstant.imgLogoEatvio, - height: 48, + height: 70, fit: BoxFit.contain, ), ), @@ -225,30 +226,30 @@ class _AuthScreenState extends State { ], ), Spacer(), - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - 'Нажимая "Войти", Вы соглашаетесь с ', + Center( + child: RichText( + textAlign: TextAlign.center, + text: TextSpan( + text: 'Нажимая "Войти", Вы соглашаетесь \n', style: TextStyle( fontSize: 12, + color: Colors.black, ), - ), - GestureDetector( - onTap: () async { - await launchUrl(Uri.parse(baseUrl + '/oferta_bs.pdf')); - }, - child: Text( - 'Публичной офертой', - style: TextStyle( - fontSize: 12, - color: appTheme.blueA400, - decorationColor: appTheme.blueA400, - decoration: TextDecoration.underline, + children: [ + TextSpan(text: 'c '), + TextSpan( + text: ' Публичной офертой', + style: TextStyle( + fontSize: 12, + color: appTheme.blueA400, + decorationColor: appTheme.blueA400, + decoration: TextDecoration.underline, + ), + recognizer: TapGestureRecognizer()..onTap = () async => await launchUrl(Uri.parse(baseUrl + '/oferta_bs.pdf')), ), - ), + ], ), - ], + ), ), const SizedBox(height: 16), BlocBuilder(