How to show a custom alert dialog when an app state variable changes?

Integrations

I want to display a custom alert dialog whenever an app state variable changes in my FlutterFlow app. Specifically, I want to show a notification using my own custom component when a certain state variable updates.

So far, I have tried using a custom action that continuously checks the variable. For example, when the variable is false (indicating no internet connection), I wanted to trigger the dialog. However, this approach didn’t work as expected.

What have you tried so far?

Created a custom action that monitors the variable.

Tried triggering the dialog when the variable changes to false.

have an internet listener that runs in the background and then updates the app state to the internet. I have already tried to include the dialog there, but it doesn't work, or rather I don't know how to display my created component as a custom Allert dialog.

However, the dialog is not showing.

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