You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using multiple patterns in DEFS I notice that they are incorrectly assigned to elements.
Here is an example of SVG code whit 2 PATTERNS in DEFS and 3 CIRCLE.
If I use two elements each of them is assigned to the correct pattern but from 3 onwards the assigned pattern remains the last one.
I've tried with different elements, also assigning IDs to the targets elements, with fill or stroke, but it's the same.
Only once after an update (the first time I'd tried the four-way sequence) did I see correct behavior vanish right after another update never to return.
In general, however, I notice a certain instability even with a single pattern, even if I took the multiple one as an example, hoping that once that is resolved, the rest will also be resolved.
For example, if you add another element at the end of the code and then remove one/two previous ones, the last one doesn't appear at all. It could be a cache-related behavior as well and it's really frustrating.
But it's just an example because sometimes every time I refresh I get a different fill/disappear result without having changed anything in the SVG code used as a test, as a test to have few elements. But if I can't manage this let alone the ultimate complex ones.
I've done many tests and for now I haven't been able to obtain a stable behavior with pattern (only with PATH but with the described instability but never for example with IMAGE). Only with LINEARGRADIENT for now I managed to get the result almost always (which was the only fill that also worked with 1.1.6, for me).
This is fixed in the latest vector_graphics, which isn't published yet, but due to dnfield/vector_graphics#182 you are likely to still not be completely happy with that. That one is going to be a little harder to solve.
HI,
when using multiple patterns in
DEFS
I notice that they are incorrectly assigned to elements.Here is an example of SVG code whit 2
PATTERNS
inDEFS
and 3CIRCLE
.If I use two elements each of them is assigned to the correct pattern but from 3 onwards the assigned pattern remains the last one.
I've tried with different elements, also assigning IDs to the targets elements, with fill or stroke, but it's the same.
Only once after an update (the first time I'd tried the four-way sequence) did I see correct behavior vanish right after another update never to return.
In general, however, I notice a certain instability even with a single pattern, even if I took the multiple one as an example, hoping that once that is resolved, the rest will also be resolved.
For example, if you add another element at the end of the code and then remove one/two previous ones, the last one doesn't appear at all. It could be a cache-related behavior as well and it's really frustrating.
But it's just an example because sometimes every time I refresh I get a different fill/disappear result without having changed anything in the SVG code used as a test, as a test to have few elements. But if I can't manage this let alone the ultimate complex ones.
I've done many tests and for now I haven't been able to obtain a stable behavior with pattern (only with
PATH
but with the described instability but never for example withIMAGE
). Only withLINEARGRADIENT
for now I managed to get the result almost always (which was the only fill that also worked with 1.1.6, for me).I'm using the
SvgPicture.string
method.Can it be checked?
Thank you.
Current environment
Flutter_svg 2.0.0+1
Flutter SDK 3.8.0-10.0.pre.13
Dart SDK 3.0.0-218.0.dev (Flutter)
The text was updated successfully, but these errors were encountered: