📅  最后修改于: 2022-03-11 15:02:51.548000             🧑  作者: Mango
Replace your setState() calls with setStateIfMounted() and define it as:
void setStateIfMounted(f) {
if (mounted) setState(f);
}