dnfield / flutter_svg

SVG parsing, rendering, and widget library for Flutter
MIT License
1.67k stars 459 forks source link

kindly update the package to support flutter latest version and dont show black image #1035

Closed fisforfaheem closed 8 months ago

dnfield commented 8 months ago

I'm not sure what the problem is here? Can you provide reproduction steps?

fisforfaheem commented 8 months ago

i have to use png file...as cant show an image on onboarding page...if it svg

On Tue, Feb 6, 2024 at 10:31 PM Dan Field @.***> wrote:

I'm not sure what the problem is here? Can you provide reproduction steps?

— Reply to this email directly, view it on GitHub https://github.com/dnfield/flutter_svg/issues/1035#issuecomment-1930433351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRXJSAGDHBF56PAO7A6JJLYSJSHDAVCNFSM6AAAAABC4MTT4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQGQZTGMZVGE . You are receiving this because you authored the thread.Message ID: @.***>

dnfield commented 8 months ago

I'm sorry but I still don't understand what problem you're encountering. If you can provide a SVG file that does not render and it's not a duplicate of some other bug I'll reopen.

fisforfaheem commented 8 months ago

Screenshot_20240207-041023.png

fisforfaheem commented 8 months ago

See

yykou commented 5 months ago

I have the same problem.An SVG image on a web page that can be opened normally will result in a black area when loaded using the latest version of the library, and the image cannot be displayed.

SVG image path:https://ccdn1.goodq.top/caches/3802cdfcb59f037aa40858825f9f3e24/aHR0cHM6Ly9zdmdzLjR2eC5uZXQvcWZ5LWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzA0LzBhYTNlNzQwYzU0ZjMxZjY0YmIyODE3OTc2ZjQwODJkLnN2Zw_p_p100_p_3D_p_p100_p_3D.svg

code: SvgPicture.network( 'https://ccdn1.goodq.top/caches/3802cdfcb59f037aa40858825f9f3e24/aHR0cHM6Ly9zdmdzLjR2eC5uZXQvcWZ5LWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzA0LzBhYTNlNzQwYzU0ZjMxZjY0YmIyODE3OTc2ZjQwODJkLnN2Zw_p_p100_p_3D_p_p100_p_3D.svg', semanticsLabel: 'A shark?!', width: 50.0, height: 50.0, placeholderBuilder: (BuildContext context) => Container( padding: const EdgeInsets.all(30.0), child: const CircularProgressIndicator()), )

最终显示的效果: Clipboard - 2024年5月30日下午3点24分

fisforfaheem commented 5 months ago

They are not helping

fisforfaheem commented 5 months ago

exported fro mfigma

On Thu, May 30, 2024 at 12:25 PM JasonZhang @.***> wrote:

I have the same problem.An SVG image on a web page that can be opened normally will result in a black area when loaded using the latest version of the library, and the image cannot be displayed.

SVG image path: https://ccdn1.goodq.top/caches/3802cdfcb59f037aa40858825f9f3e24/aHR0cHM6Ly9zdmdzLjR2eC5uZXQvcWZ5LWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzA0LzBhYTNlNzQwYzU0ZjMxZjY0YmIyODE3OTc2ZjQwODJkLnN2Zw_p_p100_p_3D_p_p100_p_3D.svg

code: SvgPicture.network( ' https://ccdn1.goodq.top/caches/3802cdfcb59f037aa40858825f9f3e24/aHR0cHM6Ly9zdmdzLjR2eC5uZXQvcWZ5LWNvbnRlbnQvdXBsb2Fkcy8yMDIxLzA0LzBhYTNlNzQwYzU0ZjMxZjY0YmIyODE3OTc2ZjQwODJkLnN2Zw_p_p100_p_3D_p_p100_p_3D.svg', semanticsLabel: 'A shark?!', width: 50.0, height: 50.0, placeholderBuilder: (BuildContext context) => Container( padding: const EdgeInsets.all(30.0), child: const CircularProgressIndicator()), )

最终显示的效果: Clipboard.-.2024.5.30.3.24.png (view on web) https://github.com/dnfield/flutter_svg/assets/21016582/62a7e604-1fc7-4612-a458-e974206d4e5c

— Reply to this email directly, view it on GitHub https://github.com/dnfield/flutter_svg/issues/1035#issuecomment-2138853773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRXJSBAAO5AJURHTVD3KGTZE3H5LAVCNFSM6AAAAABC4MTT4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZYHA2TGNZXGM . You are receiving this because you authored the thread.Message ID: @.***>