简体   繁体   中英

Flutter Firestore can't find provider in the widget tree?

Hello I am trying to firebase in my app and I keep running into problems. I've tried the suggestions in this screen shot, but I think perhaps I am not understanding properly. 颤动运行的输出

Its saying cannot find correct Provider, I am guessing it can't find it in the tree. But it looks to me as if it is there我的提供者在哪里

Here is my main where I call provider在此处输入图像描述

So it turns out this is what works. Now i just need to figure out how to present the data.

这现在运行并解决了问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM