Flutter项目编译时报错Error: Type ‘DecoderCallback’ not found

最近在编译一个Flutter项目,用的Flutter SDK V3.19.0,期间一直出现以下错误。

../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_map-0.13.1/lib/src/layer/tile_provider/network_image_with_retry.dart:36:34: Error: Type ‘DecoderCallback’ not found. NetworkImageWithRetry key, DecoderCallback decode) async { ^^^^^^^^^^^^^^^ ../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_map-0.13.1/lib/src/layer/tile_provider/network_image_with_retry.dart:36:34: Error: ‘DecoderCallback’ isn’t a type. NetworkImageWithRetry key, DecoderCallback decode) async { ^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception

经查阅Flutter SDK的变更内容才发现从3.16.0开始已经弃用了DecoderCallback类型。

原文链接:https://vuesite.cn/40108.html,转载请注明出处。
0
显示验证码
没有账号?注册  忘记密码?