From b665692779185307fae230704a1298c9f616b880 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Mon, 1 Sep 2025 13:03:43 +0300 Subject: [PATCH] fix: Issue-645 --- .../widgets/code_not_received_dialog.dart | 33 +++++++------------ 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/lib/features/registration/presentation/widgets/code_not_received_dialog.dart b/lib/features/registration/presentation/widgets/code_not_received_dialog.dart index c59d80d9..3baa5742 100644 --- a/lib/features/registration/presentation/widgets/code_not_received_dialog.dart +++ b/lib/features/registration/presentation/widgets/code_not_received_dialog.dart @@ -9,20 +9,13 @@ class CodeNotReceivedDialog extends StatelessWidget { final String currentEmail; final VerifyEmailCubit verifyEmailCubit; - const CodeNotReceivedDialog({ - super.key, - required this.currentEmail, - required this.verifyEmailCubit - }); + const CodeNotReceivedDialog({super.key, required this.currentEmail, required this.verifyEmailCubit}); void _showChangeEmailDialog(BuildContext context) { Navigator.of(context).pop(); // Закрываем текущий диалог showDialog( context: context, - builder: (context) => ChangeEmailDialog( - currentEmail: currentEmail, - verifyEmailCubit: verifyEmailCubit, - ), + builder: (context) => ChangeEmailDialog(currentEmail: currentEmail, verifyEmailCubit: verifyEmailCubit), ); } @@ -31,11 +24,7 @@ class CodeNotReceivedDialog extends StatelessWidget { return Dialog( backgroundColor: Colors.transparent, child: Container( - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(16.0), - border: Border.all(color: Colors.grey[800]!, width: 2.0), - ), + decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(16.0)), padding: const EdgeInsets.all(24.0), child: Column( mainAxisSize: MainAxisSize.min, @@ -46,17 +35,17 @@ class CodeNotReceivedDialog extends StatelessWidget { text: TextSpan( style: TextStyles.textMMedium.copyWith(color: appTheme.gray600), children: [ - const TextSpan(text: 'Опечатка в email: Если адрес введён неправильно, код не придёт. '), + const TextSpan(text: 'Опечатка в email: Если адрес введён неправильно, код не придёт. ', style: TextStyles.textFS13FW400), TextSpan( text: 'Ввести email повторно.', - style: TextStyles.textMMedium.copyWith( - color: appTheme.blueA400, - decoration: TextDecoration.underline, - ), - recognizer: TapGestureRecognizer() - ..onTap = () => _showChangeEmailDialog(context), + style: TextStyles.textMMedium.copyWith(color: appTheme.blueA400, decoration: TextDecoration.underline), + recognizer: TapGestureRecognizer()..onTap = () => _showChangeEmailDialog(context), + ), + const TextSpan( + style: TextStyles.textFS13FW400, + text: + '\n\nПроверьте спам/промо/мусорную папку: Код может попасть туда из-за фильтров почтового провайдера\n\nПодождите 1-2 минуты: Иногда email задерживается из-за сетевых проблем.\n\nУбедитесь в стабильном соединении: Проверьте интернет и уведомления на устройстве.', ), - const TextSpan(text: '\n\nПроверьте спам/промо/мусорную папку: Код может попасть туда из-за фильтров почтового провайдера\n\nПодождите 1-2 минуты: Иногда email задерживается из-за сетевых проблем.\n\nУбедитесь в стабильном соединении: Проверьте интернет и уведомления на устройстве.'), ], ), ),