小编joh*_*ohn的帖子

尽管从assests中提供了彩色图像,但SVG图片仍在颤动中返回黑色图像

这是我要添加 svgpicture 但我得到黑色图像新容器子项的代码: new SvgPicture.asset('assets/camera.svg') ),

这是我的 camera.svg 文件

<svg xmlns="http://www.w3.org/2000/svg" width="13.607" height="13.608" viewBox="0 0 13.607 13.608">
    <defs>
        <style>
            .cls-1{}
        </style>
    </defs>
    <g id="Group_5" data-name="Group 5" transform="translate(-57.8 -130.498)">
        <g id="Group_4" data-name="Group 4">
            <g id="Group_3" data-name="Group 3">
                <path id="Path_2" d="M69.415 139.294a6.792 6.792 0 0 0-2.586-1.621 3.933 3.933 0 1 0-4.452 0 6.814 6.814 0 0 0-4.577 6.433h1.063a5.741 5.741 0 1 1 11.481 0h1.063a6.763 6.763 0 0 0-1.992-4.812zM64.6 137.3a2.87 2.87 0 1 1 2.87-2.87 2.874 2.874 0 0 1-2.87 2.87z" class="cls-1" data-name="Path …
Run Code Online (Sandbox Code Playgroud)

svg image flutter

14
推荐指数
5
解决办法
1万
查看次数

标签 统计

flutter ×1

image ×1

svg ×1