title: How to keep user logged in in Flutter?
body: <p>I have a flutter app. I want to keep users logged in even after exiting the app. I have main.dart file, login.dart and dashboard.dart. i want main.dart to redirect to login.dart if the user has not signed in but directly to dashboard if shared preference value is found.</p>