Updating widget value on render?

Viewed 138

I have a Flutter app, and I want to display a color depending on the current system time in milliseconds since epoch. Of course, I cant refresh the state of the widget several times a second to change the color. But how can I achieve this effect? Is there some kind of render-method I can override?

P.S.: I am using a Material widget to display the color.

1 Answers

Flutter updates the view only when a new frame is due, no matter how often you called setState() since the last frame.

Related