flutter - SpinKitChasingDots 小部件断言 Flutter 错误 !(itemBuilder is IndexedWidgetBuilder && color is Color) && !(itemBuilder == null && color == null)'
问题描述
在最新的颤振升级之后。当我离开应用程序以转到主屏幕并返回时发生。此错误仅在红屏中出现几秒钟,然后恢复正常。
您应该指定 itemBuilder 或颜色 'package:flutter_spinkit/src/chasing_dots.dart': 断言失败: line 10 pos 16: '!(itemBuilder is IndexedWidgetBuilder && color is Color) && !(itemBuilder == null && color = =空)'
我在我的代码中看不到任何可能导致它的东西。颜色已指定。
class Loading extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.brown,
child: Center(
child: SpinKitChasingDots(
color: Colors.white,
size: 50.0,
)
),
);
}
}
只出现在模拟器上而不出现在手机上。一定是绘画的东西。
解决方案
推荐阅读
- python - FigureCanvaQtAgg : 区分左右点击
- c# - 无法从 URL Xamarin 表单下载图像
- angular - 如何访问 ng-content 投射的原生元素
- flutter - Flutter 在构建复杂小部件时显示加载指示器
- sql-server - SQL将多个值连接到多个值
- wso2 - wso2,配置header携带Bearer token,不起作用
- ios - iOS13 上的 Paypal iOS SDK UI 问题
- python - Django 从 1.8 升级到 1.9 在 init 中的模型导入中断
- docusignapi - 谁的凭据用于授权代码授予?
- ios - 在 swift 中为数据创建高级可变参数扩展