Hello, how to convert svg to vector assets in fleet like in android studio ?
r
Richard
10/29/2024, 3:18 PM
I am using this to achieve this. It's not within Fleet, but I like the output way better.
❤️ 1
a
alexandru.resiga
10/29/2024, 4:12 PM
Hi @Dinesh Rijal! in the upcoming version of Fleet 1.42 we introduce a new action to convert SVGs to Android vector drawables:
• you can select multiple SVGs in the file tree, right click and select "Convert to VectorDrawable"
• while having an SVG opened in the editor, you can invoke the Actions Menu and then search for e.g. convert, svg, vector drawable
• a notification to suggest converting-on-paste when SVGs are pasted in the project's file tree inside Fleet
please follow the ticket FL-28195 in case you have any feedback on the feature, or please create new issues in the Fleet tracker, should you encounter any issues with it, thank you!
and also, you will be able to preview vector drawables right inside Fleet! FL-26665
👀 3
a
Andy Dent
10/31/2024, 3:12 PM
If you're going to do a conversion, why not convert to Kotlin source like https://composables.com/svg-to-compose so there's
1. much less storage
2. no runtime overhead
a
alexandru.resiga
10/31/2024, 6:20 PM
Hi! since the two conversions don't cover the same use cases, and they don't exclude each other as well, we can always add another conversion if there is user demand for it!