Previously, I used xml-based material ui package to add custom theme attributes for dynamic color change inside svg resource (xml). This was to change the svg color dynamically depending on the current user's theme.
Now this is removed and replaced with ImageVector.
However, when theme changes, the ImageVector should be recomposed. Implemented by just calculating when called every time. This can be expensive, but these ImageVector are only used in static screens so it will be fine.
Previously, I used xml-based material ui package to add custom theme attributes for dynamic color change inside svg resource (xml). This was to change the svg color dynamically depending on the current user's theme.
Now this is removed and replaced with ImageVector. However, when theme changes, the ImageVector should be recomposed. Implemented by just calculating when called every time. This can be expensive, but these ImageVector are only used in static screens so it will be fine.