feat: profile and subs

This commit is contained in:
2026-06-17 11:32:18 +03:30
parent 943ba13872
commit e9f294fa19
19 changed files with 1762 additions and 34 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class _OtpScreenState extends State<OtpScreen> {
child: BlocConsumer<AuthCubit, AuthState>(
listener: (context, state) {
if (state.status == AuthStatus.authenticated) {
context.go('/lobby');
context.go(state.needsProfile ? '/setup' : '/lobby');
} else if (state.status == AuthStatus.error) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(state.error ?? 'خطا')),