forked from eatvio/eatvio_app
Merge pull request 'fix: Issue-645' (#684) from mso7nueh/eatvio_app:main into main
Reviewed-on: eatvio/eatvio_app#684
This commit is contained in:
@@ -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Убедитесь в стабильном соединении: Проверьте интернет и уведомления на устройстве.'),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user