79794180

Date: 2025-10-19 08:58:14
Score: 0.5
Natty:
Report link

Try adding this code in the redirect callback:

final atLoginScreen = loc = Routes.loginScreen;

if (!atLoginScreen && (authCubit.state is UnAuthenticated)) {

    return Routes.loginScreen;    

   }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ahmed Wafik