![](/img/trans.png)
[英]Unable to access BLoC in go_router v5.0 redirect method, BLoC is not injected in the context
[英]Refreshing a view after context.pop() with go_router and bloc
我對兩個不同的集團有兩種不同的看法。 一頁顯示在第二頁上編輯的數據。 當我在第二頁上從我的 bloc 上傳值並執行 context.pop 返回到第一頁時,第一頁不會重新加載,因為它們是單獨的 bloc,所以沒有注意到任何變化
我正在使用 go_router(我不能使用導航器進行導航)我試圖在它返回后執行異步調用,但我做不到
我能夠通過在 go 路由器中向我的頁面添加唯一鍵來解決這個問題!
在這里查看更多信息: https://github.com/flutter/flutter/issues/100969#issuecomment-1289944809
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.