![](/img/trans.png)
[英]Getting Unhandled Exception: type 'Null' is not a subtype of type 'Iterable<dynamic>' when trying to produce a feed
[英]Unhandled Exception: type 'Null' is not a subtype of type 'BuildContext'
您需要傳遞context
而不是getContext()
並且上下文是您可以在有狀態 class 中訪問的構建上下文
Navigator.pop(context);
參考https://docs.flutter.dev/cookbook/navigation/navigation-basics
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.