How to force Flutter to rebuild / redraw all widgets?

后端 未结 9 1563
攒了一身酷
攒了一身酷 2020-12-03 06:32

Is there a way to force Flutter to redraw all widgets (e.g. after locale change)?

9条回答
  •  伪装坚强ぢ
    2020-12-03 07:09

    Your Widget should have a setState() method, everytime this method is called, the widget is redrawn.

    Documentation : Widget setState()

提交回复
热议问题