Media Blur Hash JSON Format & Type Error in Android Build

Feedback

I spent two days troubleshooting a JSON list that includes blur hashes for an API call. Initially, I manually hardcoded the JSON input and discovered the blur hashes are in Base83, which caused issues during Dart compilation for Android. I resolved this by converting the hashes to Base64 before adding them to the JSON list — and it worked.

The second issue was during a loop where I used Media Blur Hash on uploaded image files and tried to store each result in a page state (list of strings). Despite using Media Blur Hash correctly (which returns a string), Android compilation threw a type error, complaining about assigning an uploaded image file to a string. I suspect this was due to how FlutterFlow handles types inside loops. I fixed the issue by restructuring the logic to use a conditional loop instead — this resolved the type mismatch during compilation.

1
3 replies