fixed auth screen

This commit is contained in:
Username1548
2025-02-06 15:20:51 +07:00
parent 77e7b6c31f
commit 5ea3264474

View File

@@ -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<AuthScreen> {
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<AuthScreen> {
},
child: SvgPicture.asset(
ImageConstant.imgLogoEatvio,
height: 48,
height: 70,
fit: BoxFit.contain,
),
),
@@ -225,30 +226,30 @@ class _AuthScreenState extends State<AuthScreen> {
],
),
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<AuthBloc, AuthState>(