Hi, thanks for the tutorial. however I couldn't make it work. Cloned your repo and got some errors from the get go. I had to flutter create . and flutter pub upgrade Besides updating the dependencies in pubspec.yaml provider : ^ 6 . 0 . 4 go_router : ^ 5 . 2 . 0 shared_preferences : ^ 2 . 0 . 15 Also, I had to change the redirect definition to redirect : (context, state) { After all that I could finally run the app but only to find out it never leaves the splashScreen... All it shows it the CircularProgressIndicator forever... In onAppStart() I commented out the line that waited for two seconds then I ran into an error I couldn't figure it out. ======== Exception caught by foundation library ==================================================== The following assertion was thrown while dispatching notifications for AppService: setState() or markNeedsBuild() called during build. I googled the error but failed miserable. Any ideas?