我刚刚开始使用提供者包重构我的应用程序结构。现在我得到了上面的错误,即使我在下一个BuildContext中通过小部件树调用提供者。知道是什么导致了这个错误吗?context.watch()),}consider using `builder` like so: Widget构建(BuildContext上下文){创建:(_) =>示例(),
//我们使用
我得到了以下错误The argument type 'StreamProvider<List<DogModel>>' can't be assigned to the parameter type 'Stream当我试图设置流stream: stream,时发生的事情create: (context) =>
DogFire
我刚开始使用颤振。在此之前,我可以正常运行应用程序,但今天早上突然发现了这个错误。这是我的密码。有人能帮我吗?生成函数返回null。令人不快的小部件是: StreamBuilder返回一个空空间,这将导致建筑小部件填满可用的空间,返回"Container()“。override final user = Provider.of<User>(context);
return StreamBuilderif (snap