【发布时间】:2021-06-26 05:08:49
【问题描述】:
我换了笔记本电脑,重新安装了 android studio 和 flutter
之前正常运行且没有任何错误和警告的应用突然开始抛出错误和警告
这是错误所在的代码:
onTap: () async {
showDialog(
context: context,
child: Container(
height: 30,
width: 30,
child: Center(
child: CupertinoActivityIndicator(
key: UniqueKey(),
radius: 20,
animating: true,
))));
await handleFacebookLogin(context).then((user) {
navigationCheck(user, context);
}).then((_) {
Navigator.pop(context);
}).catchError((e) {
Navigator.pop(context);
});
},
它以前工作得很好,但它在新安装时抛出错误似乎有点奇怪,有人可以指导我这里是什么问题吗?
到目前为止我所做的尝试:
-
运行清理项目缓存
flutter clean cache
然后使缓存失效/重启 Android Studio
- 重启飞镖分析服务器
但问题还是一样
【问题讨论】: