flutter 編譯報錯 ../extended_network_image_provider.dart:63:41: Error: Type 'DecoderCallback' not found


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.* 也不兼容  也會報錯

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM