yang-f / flutter_svg_provider

Use svg as image provider.
https://pub.dev/packages/flutter_svg_provider
Apache License 2.0
47 stars 72 forks source link

SVG image gets pixelated when using with PhotoView #59

Open rao-subba-venkata opened 10 months ago

rao-subba-venkata commented 10 months ago

While using this package with PhotoView package as follows and then we zoom in a little, the SVG image gets pixelated.

PhotoView( imageProvider: Svg("assets/1223-1920x1080.svg"), ),

The image is proper and confirmed that it can zoom without pixelated using external tool. To further identify problematic part, used the following code. flutter_svg was used in place of flutter_svg_provider.

Transform.scale( scale: 30, child: SvgPicture.asset('assets/1223-1920x1080.svg'), )

This time the image did not pixelate this time.