Can’t use BlurHash.encode function in Flutter for encoding an image #24
-
I'm working on my project and wanted to use BlurHash to make thumbnails more attractive, based on the documentation available I’m trying to generate hash this way :- final data = File(thumbnailMedia.path!).readAsBytesSync(); but en error - The method 'encode' isn't defined for the type 'BlurHash'. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Are you sure you are importing the correct package and there are no name conflicts with a different BlurHash package or something like that? Because as far as I can see your snippet looks correct to me. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Are you sure you are importing the correct package and there are no name conflicts with a different BlurHash package or something like that? Because as far as I can see your snippet looks correct to me.