Search code examples
flutterdoublestateprovider

Flutter show changes to variable


I have a public double called minuteValue and minuteValue gets modified by two different classes, but when I change minute in class1 the changes are not displayed in class2. What can I do?


Solution

  • You need to manage the state of the app, changing a value will not update the Widget with the new value. I suggest looking into bloc/GetX