flutter报错 Unhandled Exception: Looking up a deactivated widget‘s ancestor is unsafe.

在这里插入图片描述
解决:
上下文丢失了 把【context 改为 this.context 正确指代。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Session_W/article/details/122189403