feat(verify): phone

This commit is contained in:
mso7nueh
2025-05-21 17:42:43 +03:00
parent cb9fff9327
commit 067e0929ed
98 changed files with 821 additions and 760 deletions

View File

@@ -36,6 +36,10 @@ class ProfileCubit extends Cubit<ProfileState> {
}
}
Future<String> getPassKey(String phone) async {
return (await profileRepository.getPassKey('+79150626151'));
}
Future<void> getMyProfile({
String period = '1',
}) async {

View File

@@ -221,6 +221,10 @@ class _ProfileScreenState extends State<ProfileScreen> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
ElevatedButton(onPressed: () async {
final String passKey = await profileCubit.getPassKey('+79150626151');
GoRouter.of(context).pushNamed('verifyScreen', extra: passKey);
}, child: Text('phone verify')),
_header(state),
if (state.profile.roles.contains('consultant'))
Column(