1
I have an API that returns pixel art’s, this API returns only images with small size: 25x25, 50x50.
Problem
As the images are very small it is not possible to display these images at a higher resolution, (e.g.: 900x900, 350x350, 600x600)
Web solution
To display these pixelated images on the web I use the property image-rendering
of CSS with value pixelated
, This makes the pixelated image high resolution regardless of size
<img src="..." width="1200" height="1200" style="image-rendering: pixelated"> <!-- Ok -->
Solution in Flutter
What approach is needed to use something similar to image-rendering: pixelated
on the Flutter?
Something like:
@override
Widget build(BuildContext context) {
return Image.network('...', rendering: ImageRendering.pixelated);
}