How to pass a value from dialog component to its parent page?

Actions & Logic

The plus button shows a dialog(component) there a new record can be added. What is the best way to pass the added ID of the new record back to the first page?

After some search I found that there are Two ways
1- Using app state variable, which I think it's not practical.
2- Using navigation which, is not this approach cases overhead?

I want to know is there another way or which way is the best.?

Any detail step by step explanation will be helpful...

First page



dialog (component)

What have you tried so far?

After some search I found that there are Two ways
1- Using app state variable, which I think it's not practical.
2- Using navigation which, is not this approach cases overhead?

I want to know is there another way or which way is the best.?

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