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

Build Error with flutter_blurhash: 'DecoderCallback' Type Not Found on iOS Build #63

Closed YDA93 closed 11 months ago

YDA93 commented 11 months ago

Issue Overview:

I'm encountering a build error when trying to compile my Flutter app for iOS. The error is specifically mentioning a missing DecoderCallback type.

Flutter Doctor:

Click to expand ``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.16.0, on macOS 14.1.1 23B81 darwin-arm64, locale en-KW) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.84.2) [✓] Connected device (3 available) ! Error: Browsing on the local area network for iPhone 11 Pro Max. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • No issues found! ```

Error Output:

Click to expand ``` Launching lib/main.dart on iPhone 15 Pro Max in debug mode... main.dart:1 Automatically signing iOS for device deployment using specified development team in Xcode project: L5GMX9Y2JD Xcode build done. 227.0s Failed to build iOS app Could not build the precompiled application for the device. Error (Xcode): ../../../.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_widget.dart:218:42: Error: Type 'DecoderCallback' not found. blurhash_widget.dart:218 Error launching application on iPhone 15 Pro Max. Exited (1) ```
myxzlpltk commented 11 months ago

https://api.flutter.dev/flutter/painting/DecoderCallback.html it has been Deprecated and removed per flutter 3.16.0

dickermoshe commented 11 months ago

Seems this has gone unmaintained for a while: Fork https://pub.dev/packages/flutter_blurhash_plus

Solido commented 11 months ago

Correction published. Thx for the report.