Its been some time since I had the need to deploy a web application. In the past I always used the HTML render engine as despite the higher initial loading time image quality was as expected. Fast forward today and I am left only with Canvas or WASM but I am still struggling with getting the quality of images to an acceptable spot. This only happens for images from assets png, webp or even svg.
Here is the code I use to display the images
SvgPicture.asset(
width: 40.0,
height: 40.0,
fit: BoxFit.contain,
'assets/images/abc.svg',
),
Image.asset(
'assets/images/xyz.webp',
width: 40,
height: 40,
fit: BoxFit.contain,
)
I have also attached a screen from a web app deployed to Firebase…any suggestions are greatly welcome.