Flutter Login Redirect Fix

Job ID: 39880705

Budget: ₹600 – ₹1,500 INR

I have a production Flutter app that authenticates correctly, but after a successful login the user never reaches the Home screen—the UI simply sits on the login page. I need you to trace the navigation logic, identify the root cause, and supply a clean fix that restores the expected flow.

What I expect from you
• Locate and resolve the redirection bug so that a valid login automatically pushes the Home route.
• Verify that any session token or credential is stored and read back properly (shared_preferences / secure storage as used in the project).
• Regression-test the updated build on both Android and iOS emulators or devices and share a short video or screenshots confirming success.
• Commit the patch to the existing Git repo with clear comments.

Tech context
The codebase is pure Flutter/Dart, using the standard Navigator 2.0 API and REST-based authentication. No major refactor is required; the goal is a surgical fix delivered quickly.

Acceptance criteria
1. Entering valid credentials lands the user on HomePage within one second.
2. Closing and reopening the app keeps the user on HomePage if the auth token is still valid.
3. No new warnings or errors appear in the console after the patch.

The task is small and urgent, so please bid only if you can start immediately and wrap up fast.