错误:getter' auth'为类别定义的ISNS不定为object'
我使用提供商的代码。我一直在遇到此错误错误:getter“ auth''并未定义为“对象”。
FutureBuilder(
future: Provider.of<Object>(context).auth.getCurrentUID,
builder: (BuildContext context, AsyncSnapshot snapshot) {
if(snapshot.connectionState == ConnectionState.done)
{
print("done");
}
else{
return CircularProgressIndicator();
}
return Container();
},
),
请提供帮助。先感谢您!
The code where I have used Provider. I keep getting this error Error: The getter 'auth' isn't defined for the class 'Object'.
FutureBuilder(
future: Provider.of<Object>(context).auth.getCurrentUID,
builder: (BuildContext context, AsyncSnapshot snapshot) {
if(snapshot.connectionState == ConnectionState.done)
{
print("done");
}
else{
return CircularProgressIndicator();
}
return Container();
},
),
Please help. Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论