Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant Compile #431

Closed
lunyaUwU opened this issue Aug 30, 2023 · 4 comments
Closed

Cant Compile #431

lunyaUwU opened this issue Aug 30, 2023 · 4 comments

Comments

@lunyaUwU
Copy link

when i do flutter build linux it gives me following error

ERROR: ../../../../test/.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_widget.dart:218:42: Error: Type 'DecoderCallback' not found.
ERROR: ImageStreamCompleter load(UiImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));
ERROR: ^^^^^^^^^^^^^^^
ERROR: ../../../../test/.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_image.dart:32:48: Error: Type 'DecoderCallback' not found.
ERROR: ImageStreamCompleter load(BlurHashImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));
ERROR: ^^^^^^^^^^^^^^^
ERROR: ../../../../test/.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_widget.dart:218:42: Error: 'DecoderCallback' isn't a type.
ERROR: ImageStreamCompleter load(UiImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));
ERROR: ^^^^^^^^^^^^^^^
ERROR: ../../../../test/.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_image.dart:32:48: Error: 'DecoderCallback' isn't a type.
ERROR: ImageStreamCompleter load(BlurHashImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));

@lunyaUwU
Copy link
Author

I might be a retard

@Craftplacer
Copy link
Member

Craftplacer commented Sep 2, 2023

Have you tried running flutter pub get? This could also be because your Flutter version is outdated, everything should be outlined in https://github.com/Kaiteki-Fedi/Kaiteki/blob/master/BUILDING.md

@lunyaUwU
Copy link
Author

lunyaUwU commented Sep 2, 2023

Have you tried running flutter pub get? This could also be because your Flutter version is outdated, everything should be outlined in https://github.com/Kaiteki-Fedi/Kaiteki/blob/master/BUILDING.md

the issue is that flutter_blurhash-0.7.0/ uses a type that doesnt exist in the latest flutter version wich is why u need to go to an older version
flutter/flutter#132679 here is the pr that broke the library

@Craftplacer
Copy link
Member

Craftplacer commented Sep 3, 2023

I have created a pull request on the dependency breaking the builds: fluttercommunity/flutter_blurhash#58

Will override our pubspec to use my fork for the time being.

@Kaiteki-Fedi Kaiteki-Fedi locked and limited conversation to collaborators Sep 4, 2023
@Craftplacer Craftplacer converted this issue into discussion #433 Sep 4, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants