flutter_svg icon indicating copy to clipboard operation
flutter_svg copied to clipboard

Opacity not support

Open conall1995 opened this issue 2 years ago • 1 comments

hey i am trying to use a svg file have opacity its loaded but without opacity

simple svg for test

<svg xmlns="http://www.w3.org/2000/svg" width="237" height="70" fill="none" viewBox="0 0 237 70"> <g opacity=".3"> <path fill="#1F0987" d="M232.04-2.308L237-7.275v9.927l-4.96-4.96zM232.04 12.556l4.96-4.96v9.927l-4.96-4.967zM232.04 27.427l4.96-4.96v9.92l-4.96-4.96zM232.04 42.298l4.96-4.96v9.92l-4.96-4.96zM232.04 57.17l4.96-4.96v9.919l-4.96-4.96zM232.04 72.04l4.96-4.96V77l-4.96-4.96z"/> <g> <path fill="#1F0987" d="M216.851 12.556l4.96-4.96v9.927l-4.96-4.967zM216.851 27.427l4.96-4.96v9.92l-4.96-4.96zM216.851 42.298l4.96-4.96v9.92l-4.96-4.96zM216.851 57.17l4.96-4.96v9.919l-4.96-4.96z"/> </g> <g> <path fill="#1F0987" d="M201.661 27.427l4.967-4.96v9.92l-4.967-4.96zM201.661 42.298l4.967-4.96v9.92l-4.967-4.96z"/> </g> <g> <path fill="#1F0987" d="M224.01 5.124l4.959-4.96v9.92l-4.959-4.96zM224.01 19.995l4.959-4.96v9.92l-4.959-4.96zM224.01 34.866l4.959-4.96v9.92l-4.959-4.96zM224.01 49.737l4.959-4.96v9.92l-4.959-4.96zM224.01 64.609l4.959-4.96v9.92l-4.959-4.96z"/> </g> <g> <path fill="#1F0987" d="M209.26 19.995l4.959-4.96v9.92l-4.959-4.96zM209.26 34.866l4.959-4.96v9.92l-4.959-4.96zM209.26 49.737l4.959-4.96v9.92l-4.959-4.96z"/> </g> <g> <path fill="#1F0987" d="M193.547 34.866l4.959-4.96v9.92l-4.959-4.96z"/> </g> </g> <path fill="#1F0987" d="M85.176 34.525a3 3 0 00-4.231 0l-12.21 12.15a3 3 0 01-4.231 0l-12.218-12.15a3 3 0 00-4.232 0l-12.208 12.15a3 3 0 01-4.232 0L19.407 34.526a3 3 0 00-4.233 0L1.78 47.864a1.283 1.283 0 101.81 1.818l11.584-11.535a3 3 0 014.233 0l12.207 12.147a3 3 0 004.232 0l12.209-12.149a3 3 0 014.231 0l12.218 12.15a3 3 0 004.232 0l12.209-12.15a3 3 0 014.231 0l11.484 11.42a1.283 1.283 0 101.81-1.82l-13.294-13.22z"/> </svg>

i cant use .with opacity for this file flutter ver: Channel stable, 2.10.3, on Mac OS X 10.15.7 svg_flutter ver: ^1.0.3

conall1995 avatar Apr 07 '22 13:04 conall1995

I can't reproduce this. What platform are you using?

dnfield avatar Apr 07 '22 16:04 dnfield