You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好,我在学习flutter参考您的项目,项目写的挺好的,大大点赞
有遇到问题,xcode编译中中发下一个错误
`
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(properties);
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.
'PictureStreamCompleter' is from 'package:flutter_svg/src/picture_stream.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
ifPresent: _completer?.toStringShort(),
^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(description);
^^^^^^^^^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
`
找到的解决方法为pubspec.yaml文件修改为’ flutter_svg: ^0.18.0‘重新flutter pub get即可
请指正
The text was updated successfully, but these errors were encountered:
您好,我在学习flutter参考您的项目,项目写的挺好的,大大点赞
有遇到问题,xcode编译中中发下一个错误
`
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(properties);
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.
Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
ifPresent: _completer?.toStringShort(),
^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(description);
^^^^^^^^^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
`
找到的解决方法为pubspec.yaml文件修改为’ flutter_svg: ^0.18.0‘重新flutter pub get即可
请指正
The text was updated successfully, but these errors were encountered: