0

Any solution to fix the pixelated issue on flutter? Here is my code.

Code

Image.asset(
            'assets/logo.png',
          ),
SvgPicture.asset(
            'assets/logo.svg',
          ),

Even i tried to solve it with filterQuality but i didn't find this as a solution.

filterQuality: FilterQuality.medium,

filterQuality: FilterQuality.high,

  • Some versions of flutter have an issue with rendering the images properly on web. I recommend you to update your flutter to the latest version. – Subash Jan 11 '23 at 15:56
  • I don't understand your problem. What is your problem? Please describe in detail your problem. If necessary, please add illustrations – Trần Văn Hiếu Jan 12 '23 at 07:56
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jan 12 '23 at 11:32
  • @Subash Thank you for reaching out. I have updated the flutter to the latest version. But image on the web gets pixelated. – Sabin Simkhada Jan 18 '23 at 07:17
  • @TrầnVănHiếu I have used an image with the extension of .svg /.png but while rendering on the web it is getting pixelated. here is the Code SvgPicture.asset( 'assets/logo.svg', ), Image.asset( 'assets/logo.png', ), Also tried using filterQuality: FilterQuality.medium, filterQuality: FilterQuality.high, but still I am facing the issue. – Sabin Simkhada Jan 18 '23 at 07:20
  • @SabinSimkhada any error on the console? Also include a screenshot of the rendered image if possible. – Subash Jan 18 '23 at 08:50

0 Answers0