2022年9月8日星期四

Force Flutter navigator to reload state when popping

Short answer:

Use this in 1st page:

Navigator.pushNamed(context, '/page2').then((_) => setState(() {}));

and this in 2nd page:

Navigator.pop(context);

沒有留言:

發佈留言