Jordan Kennedy
 · Indie App Maker

How to reset app state or rebuild page when user returns to app?

Actions & Logic

*Edited for Clarity*

I have built a daily quiz app. When users return to the app, I need it to rebuild the page so that the conditional checks the lastPlayedDate == TodayDate

As it works now, if a user re-opens the app the next day, the previous day's quiz still shows because the conditional check is not run (no page is being loaded/reloaded)

See the screenshot to get a better picture of what I mean.

Imagine if users come back to this app every day to play daily trivia. If the user opens the app and it is a new day, the app's state or page rebuild needs to happen to show the right content to the user.

What have you tried so far?

I've tried searching for a solution, but coming up short.

Did you check FlutterFlow's Documentation for this topic?
Yes
8 replies