flutter 编译的时候报错
Compiler message:
../../../.pub-cache/hosted/pub.dartlang.org/extended_image_library-0.1.9/lib/src/extended_network_image_provider.dart:63:41: Error: Type ‘DecoderCallback‘ not found.
ExtendedNetworkImageProvider key, DecoderCallback decode) {
^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/extended_image_library-0.1.9/lib/src/extended_network_image_provider.dart:87:41: Error: Type ‘DecoderCallback‘ not found.
ExtendedNetworkImageProvider key, DecoderCallback decode) async {
研究了半天 发现还是yaml 里面的这个插件导致的
github 上的讨论https://github.com/fluttercandies/extended_image/issues/81
https://github.com/inspireui/support/issues/1595
extended_image: ^0.6.4 我的建议上直接不用这个插件了 因为flutter sdk 升级最新的v1.12.* 也不兼容 也会报错
flutter 编译报错 ../extended_network_image_provider.dart:63:41: Error: Type 'DecoderCallback' not found
原文地址:https://www.cnblogs.com/tianmiaogongzuoshi/p/12084956.html