fluttercommunity / flutter_blurhash

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium. Maintainer: @Solido
https://pub.dev/packages/flutter_blurhash
MIT License
528 stars 66 forks source link

Not Working with Flutter version 3.19.5, Dart version 3.3.3 #67

Closed yogesh-1305 closed 6 months ago

yogesh-1305 commented 6 months ago

Facing the below mentioned error, while upgrading my project to Flutter version 3.19.5, Dart version 3.3.3

../../../../../../.pub-cache/git/flutter_blurhash-f4f19e180ba3f689abb7a047c21100c4cfe83fb7/lib/src/blurhash_widget.dart:201:42:

Error: 'DecoderCallback' isn't a type. ImageStreamCompleter load(UiImage key, DecoderCallback decode) => ^^^^^^^^^^^^^^^

Dart 3.3.3 does not have the "DecoderCallback". hence, flutter is not able to find it.

My flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-IN) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.87.2) [✓] Connected device (4 available) [✓] Network resources

• No issues found!