Solution:
The context is lost. Change [context to this.context to refer correctly.
flutter报错 Unhandled Exception: Looking up a deactivated widget‘s ancestor is unsafe.
Supongo que te gusta
Origin blog.csdn.net/Session_W/article/details/122189403
Recomendado
Clasificación