[FIXED] Blurry pixels in image preview

Issue

I’m trying to make a pixel art app using the image package but I have hit a roadblock. Individual pixels look blurry but when I export the image they look fine. Is this an image scaling issue?

I’m displaying the image with Image.memory(encodePng(image) as Uint8List)

Here is what the image preview looks like:
Blurry pixels in image preview

Solution

Update: I resorted to drawing the image to a canvas using CustomPaint. I still don’t know what caused the blurriness, but that solved my issue.

Answered By – Momar

Answer Checked By – Candace Johnson (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published