Refresh ListView on Screen Focus.

Actions & Logic

Hello FlutterFlow Community,

I’m working on an address listing screen that displays a list of addresses, with an onLoad action to refresh the ListView when the screen initially loads.

What have you tried so far?

Here's my flow:

  1. From the address listing screen, the user taps a button to add a new address, which navigates them to a new screen where they can input details.

  2. Once they submit the new address, a successful API call triggers a goBack action, returning the user to the address listing screen.

  3. Problem: The onLoad action doesn’t run again after going back, so the updated address list isn’t showing. The only way to see the updated list is to close the screen and reopen it, which isn’t user-friendly.

Is there a way to trigger the ListView to refresh automatically when the user returns to this screen? I’d appreciate any guidance on how to handle this.

Thank you!

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