feat(email): add alert for phone verify and email verify after registration

This commit is contained in:
mso7nueh
2025-05-27 16:50:36 +03:00
parent 67bf7b0510
commit 242cb474cc
3 changed files with 4 additions and 1 deletions

View File

@@ -58,7 +58,6 @@ class MenuScreen extends StatelessWidget {
),
_divider(context),
_tile(leading: ImageConstant.icnExit, title: 'Выход', onTap: _onTapLogout(context)),
_tile(leading: ImageConstant.icnExit, title: 'Verify email', onTap: () => GoRouter.of(context).pushNamed('verifyEmailScreen')),
],
),
),

View File

@@ -59,6 +59,7 @@ class RegistrationCubit extends Cubit<RegistrationState> {
);
await TokenStorage.saveTokenInStorage(token);
AppRouter.navigatorKey.currentContext?.go('/feed-screen');
AppRouter.navigatorKey.currentContext?.goNamed('verifyEmailScreen');
} catch (e) {
log(e.toString());
}