feat(xdg_icons): replace flutter_svg dependency with jovial_svg#475
Conversation
d369168 to
e897e24
Compare
2d3dad0 to
48311b0
Compare
|
@PureTryOut I'm not sure why the CI doesn't clearly state it, but the contributor agreement needs to be signed: https://ubuntu.com/legal/contributors |
|
Looks like the golden test for 'svg file' is failing.
Could you have a look @PureTryOut ? |
jpnurmi
left a comment
There was a problem hiding this comment.
Sorry for the bikeshedding. 😅 Previously, we would pass the preferred size to SvgPicture constructor, but with ScalableImageWidget, we're not passing any size. Does it end up using the SVG viewbox size, which may not match what the user requested? The mismatch should be noticeable when passing a large size to XdgIcon. If there's no way to pass the preferred size, perhaps we need to wrap it with a SizedBox or something?
48311b0 to
72d3f07
Compare
No problem, that's what PR's are for 😉
Yes. I've set the size in the example to 480 and it only got as big as the viewbox size. Seems just fine.
I saw that in CI but didn't figure out where I could sign it. Thanks for the link, I'll read it through. |
09a3c34 to
2e920ad
Compare
|
Not sure why the CLA check is still failing as I've signed it now. I can't sign it again either as it says the email address (the same as on my commits) has already signed it. |
The problem is that those arbitrary sizes in the SVG files might significantly differ from the actual requested sizes. For example, requesting a 16px Center(
child: XdgIcon(name: 'drive-harddisk', size: 16, theme: 'Adwaita'),
)Would show a 128px icon because that specific icon theme happens to ship |
Could you try rebasing your branch and see if that fixes it? I've updated the CLA workflow in #478. |
2e920ad to
033c137
Compare
033c137 to
a3e92d4
Compare
|
In the latest commit, |
a3e92d4 to
82637f0
Compare
|
Woops! That should probably be in a gitignore 😅 |
|
Is there anything left to do here? |
Sorry for the late reply - I've been quite busy these past weeks. One minor thing, would you mind signing your commits? |
This allows using SVG icons that have for example the <style> attribute set. An example of an icon theme using this is KDE's Breeze. flutter_svg doesn't support this and without it Breeze's dark icons would render as black even though they're supposed to be white. See dnfield/flutter_svg#105 for context.
82637f0 to
505a182
Compare
|
Done! |
Release `xdg_icons` `0.1.1` including the changes from #475.


This allows using SVG icons that have for example the <style> attribute set. An example of an icon theme using this is KDE's Breeze. flutter_svg doesn't support this and without it Breeze's dark icons would render as black even though they're supposed to be white.
See dnfield/flutter_svg#105 for context.
Fixes #472.
CC @jpnurmi