/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_日期时间_选择器-1.3.8/lib/src/datetime_拾取器_theme.dart:6:28:错误:找不到类型'DiagnosticableMixin‘。使用/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter {^^ DatePickerTheme DiagnosticableMixin {^^^_svg-0.17.4/lib/src/图片_stream.dart:88:26:错误:找不到型'DiagnosticableMixin‘。使用/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter {^^ PictureStream DiagnosticableMixin {^^^_svg-0.17.4/lib/src/图片_stream.dart:192:44:错误:找不到类型'DiagnosticableMixin‘。使用/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter {^使用DiagnosticableMixin {^^的抽象类PictureStreamCompleter_日期时间_选择器-1.3.8/lib/src/datetime_拾取器_theme.dart:6:7:错误:不能混合使用类型“DiagnosticableMixin”。使用/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter {^ DatePickerTheme }创建DiagnosticableMixin类_svg-0.17.4/lib/src/图片_stream.dart:88:7:错误:不能混合使用类型“DiagnosticableMixin”。使用/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter {^ PictureStream }创建DiagnosticableMixin类_svg-0.17.4/lib/src/图片_stream.dart:192:16:错误:不能混合使用类型“DiagnosticableMixin”。使用/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter {^ PictureStreamCompleter }抽象类DiagnosticableMixin_svg-0.17.4/lib/src/图片_stream.dart:167:11:错误:超类没有名为“debugFillProperties”的方法。/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter (属性);super.debugFillProperties(属性);^^_svg-0.17.4/lib/src/图片_stream.dart:171:30:错误:没有为“”PictureStreamCompleter“类定义方法“”toStringShort“”。“”
失败:生成失败,出现异常。
进程'command 'C:\src\flutter\flutter\bin\flutter.bat'‘已完成,退出值为1
发布于 2020-08-10 20:41:49
dependency_overrides: flutter_svg: 0.18.0
在你的pubspec.yaml中
发布于 2020-08-11 20:19:10
我遇到了与您完全相同的错误,我的解决方案是更新我的flutter_svg包到其最新版本。因此,我建议您进入pubspec.yaml并在依赖项下执行以下操作:
flutter_svg: 0.18.0
然后运行pub get,希望错误应该消失。
发布于 2020-08-13 15:53:11
To change dependency:
flutter_svg: ^0.17.4 to flutter_svg: ^0.18.0
然后,
flutter pub get
flutter clean
然后,运行
https://stackoverflow.com/questions/63311036
复制相似问题