Repository: flutter
Issue: [flutter_svg] SVG not rendered correctly on different screen size width
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/766_

Original report by @thomasaldershof on Sep 6, 2022

Hello,

I'm having this issue on Windows, Chrome and Edge. It does not seem to happen on Android at least. But resizing is harder there.

Here is an example of my issue on Windows:  
![image](https://user-images.githubusercontent.com/28623044/188617991-17e6068e-f1ee-4aa1-882e-2f2ea61facbb.png) and after resizing the window 1px it looks like this
![image](https://user-images.githubusercontent.com/28623044/188618094-490f2522-d527-4777-bc51-26cdc88b02e0.png). This switches on every window resize.
On Edge it's a bit harder to see, but the lines appear thinner: 
![image](https://user-images.githubusercontent.com/28623044/188618478-8087e6a9-729d-4e2c-a634-41116a31aa28.png)
![image](https://user-images.githubusercontent.com/28623044/188618551-86afc5d5-068a-45c5-a981-ae0d5fc58a97.png)

Here is my flutter doctor -v:
[√] Flutter (Channel stable, 3.3.0, on Microsoft Windows [Version 10.0.22622.590], locale
    en-NL)
    • Flutter version 3.3.0 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffccd96b62 (7 days ago), 2022-08-29 17:28:57 -0700
    • Engine revision 5e9e0e0aa8
    • Dart version 2.18.0
    • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
    • Android SDK at C:\Users\dxzds\AppData\Local\Android\sdk
    • Platform android-31, build-tools 33.0.0-rc2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.1.32407.343
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] VS Code (version 1.71.0)
    • VS Code at C:\Users\dxzds\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.48.0

[√] Connected device (4 available)
    • IN2023 (mobile)   • 192.168.0.225:42091 • android-arm64  • Android 12 (API 31)
    • Windows (desktop) • windows             • windows-x64    • Microsoft Windows [Version   
      10.0.22622.590]
    • Chrome (web)      • chrome              • web-javascript • Google Chrome 105.0.5195.52  
    • Edge (web)        • edge                • web-javascript • Microsoft Edge 105.0.1343.27 

[√] HTTP Host Availability
    • All required HTTP hosts are available

Also here are the SVG files, in case you want to try them: 
![ic_ero](https://user-images.githubusercontent.com/28623044/188618985-ac540767-a3ab-46ea-b26f-e8257d9664aa.svg)
![ic_info](https://user-images.githubusercontent.com/28623044/188618996-20e37ca3-94ac-4819-9709-378350e44679.svg)

I hope you can help me! 

Thanks for reading this far,
Thomas

---
Comment by @dbacic on Oct 11, 2022
I'm facing the same issue on Windows and macOS. Moving the app from the MacBook to the external monitor messes up the image quality (same for windows lap top). Not sure if it has to do something with Flutter or this package?

---
Comment by @jkaae93 on Jul 13, 2023
I have same issue on iOS. any other solution? or update?
<details><summary>Flutter doctor -v</summary>
<p>

[✓] Flutter (Channel stable, 3.10.1, on macOS 13.5 22G5059d darwin-arm64, locale ko-KR)
    • Flutter version 3.10.1 on channel stable at /Users/--/Library/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d3d8effc68 (8 weeks ago), 2023-05-16 17:59:05 -0700
    • Engine revision b4fb11214d
    • Dart version 3.0.1
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/--/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/--//Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.80.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.54.0


</p>
</details> 


[Image](https://imgproxy.holix.com/aHR0cHM6Ly9zdG9yYWdlLmVkdWNhc3QuY29tL2NoYXQtcm9vbS9jb21tb24vZDI2NmYxNWQtYmY0OS00N2ZiLTllOGItYzMyMDkyYmYyMjVlL0lNR19EMkJCQzEzOTY3M0UtMS5qcGVn.webp)