Simple hack to refresh a page view in Flutterflow

So this is less of a hack and more of a method for refreshing your Flutterflow page views. The good thing is, it needs no custom actions or custom code, we are just using what is already built into Flutterflow.

The issue is that sometimes when you are changing values or information on a page, the page itself does not update. One option is to re navigate to the page, i.e. when the action you are performing has completed, re load the page completely. If it is a database action you are performing you can also refresh the database.

Another method which works really well, especially when changing variable values or performing conditional actions is what we look at in this video. Simply put’ we have a Page State variable, called forUpdate, or something similar. When we perform an action and we want the page re-drawn, we simply change the value of forUpdate and it redraws the page.

Here is the video.

How to refresh a view in Flutterflow

So it really is that simple. This is a method that you see recommended to users of Flutterflow on Reddit all of the time, so I take no credit, I am just passing it on. Basically we are changing the values in the widgets on our page and by re-assigning the value of out forUpdate variable, we are forcing the page to re-draw itself. Knowing some methods that you will use over again can have a dramatic effect on your productivity, one of these would be calculating the sum of a column in your Supabase table. This is another, and it is one of those simple tricks that if you don’t know about it, can have you scratching your head for hours trying to resolve this particular issue.