Amine Daikha
Amine Daikha

Reputation: 19

Error: Type 'DecoderCallback' not found flutter_map: ^0.13.1

Ihave this error: ../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 I use this version of flutter_map: ^0.13.1 and my sdk version is sdk: '>=2.18.5 <3.0.0' help me please

I can't use other version because I have a big project working with this version

Upvotes: 0

Views: 2301

Answers (1)

Mohamed Essalhi
Mohamed Essalhi

Reputation: 11

You probably have flutter version > 3.13. Since 3.13, flutter has changed DecoderCallback for DecoderBufferCallback.

Try to install a previous version of flutter

https://docs.flutter.dev/release/breaking-changes/3-13-deprecations

Upvotes: 1

Related Questions