Hello, X 👋🏻
We're back with more of the Restaurant Delivery app with Flutter ⚡️
I have to say I didn't code as much today, but the knowledge gained is always priceless!
Today's learning:
- Persist user session
- Learned about StreamBuilder. Takes in a stream and a builder values. stream binds to the supabase.auth.onAuthStateChange in charge of listening to any auth events that happen. builder takes in the context and snapshot where we then check if the session is not null, we then return the HomeScreen widget. Otherwise, we return the HomeScreen widget
Stay tuned for more 🫵🏻