on-internet
← Community

Failed assertion: line 5070 pos 12: '': is not true

Stack Overflow ·

After a user successfully logins in and saving the state, I want to hide the login screen and just load the home screen, but I end up with the error The following assertion was thrown building Navigator-[GlobalObjectKey _WidgetsAppState#6686e](dirty, dependencies: [UnmanagedRestorationScope, HeroControllerScope], state: NavigatorState#c7e9f(tickers: tracking 1 ticker)): 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 5070 pos 12: '': is not true. What is the right way of hiding the login screen when the token is still valid, and just load the home screen? my code Main.dart

Comments

Sign in or sign up to comment and upvote.

No comments yet.