How to modify the value of the 'Timer' element inside 'Page' using the button inside 'Bottom Sheet'

Widgets & Design


1. The 'SetTimer' widget consisting of the 'Number Picker' and 'Set Time' buttons was called from the Bottom Sheet.

2. The values ​​selected in 'Number Picker' are saved as App State variable values.

3. When i click the 'Set Time' button, i try dismiss the 'Bottom Sheet' and set the 'min' and 'sec' values ​​saved in the App State to the Timer.

However, the 'Timer' element existing in the parent 'Page' cannot be controlled from the 'Set Time' button 'Actions'.

What is a good way?

What have you tried so far?

I tried the following method as well but didn't get any result:

1. The value property of the 'Timer' element is set to the variable of 'App State'.
2. The value set in 'Number Picker' has been updated to the 'App State' variable.
3. The page redraw. However, the value of the Timer element is not updated.

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