Pedro Sales
 · CEO at Crusader Labs

How to update the content of a component / custom diloag

Resolved

Hi FlutterFlow Community,

I'm encountering an issue with a dynamic ListView connected to a Firebase collection in my FlutterFlow app. In each row of the ListView, there's a "Manage" button for handling individual documents.

Here's the workflow:

  1. When the "Manage" button is clicked, it opens a custom dialog. This dialog receives parameters including the selected document's information.

  2. The custom dialog displays widgets, such as a text widget showing the document's name, and a TextField to modify the document's name.

  3. Upon editing the name in the TextField and saving, the document is successfully updated in Firebase and the change is reflected in the ListView on the main page.

However, I'm facing a challenge:

- The text widget in the custom dialog, which displays the document's name, does not update with the new name. It continues to show the old name that was passed initially as a parameter.

My question is:

- How can I make the custom dialog's text widget reflect the updated document name immediately after saving the changes? Is there a way to refresh the custom dialog or reload the parameter values without having to close and reopen the dialog?

Any insights or suggestions on how to resolve this issue would be greatly appreciated!

1
2 replies