feat: profile and subs
This commit is contained in:
@@ -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 ?? 'خطا')),
|
||||
|
||||
Reference in New Issue
Block a user