flutter_svgCC not support centerSlice .

Created on 1 Apr 2020  路  2Comments  路  Source: dnfield/flutter_svg

Hi all.
I want use properties centerSlice for image svg .
Can you add properties centerSlice to flutter_svg ? or any similar properties use in flutter_svg . Can u help me @dnfield ?

Most helpful comment

This is definitely doable, although I doubt I'll be able to get to it anytime soon. I'm also not clear on whether it's really worth the complexity it entails. For raster images, it helps save on disk space (you can have a small square image that scales to any size without extra disk space). With SVG, it doesn't really save you on size so much, and it should be trivial to just scale the SVG itself (if you're scaling in both dimensions), or to just construct the right SVG for what you want with minimal extra disk space.

All 2 comments

This is definitely doable, although I doubt I'll be able to get to it anytime soon. I'm also not clear on whether it's really worth the complexity it entails. For raster images, it helps save on disk space (you can have a small square image that scales to any size without extra disk space). With SVG, it doesn't really save you on size so much, and it should be trivial to just scale the SVG itself (if you're scaling in both dimensions), or to just construct the right SVG for what you want with minimal extra disk space.

Hi @dnfield
thank your reply .
I understand but current SVG image it scale follow image SVG . I want similar property like centerSlice . Do you support me?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

coupestartup picture coupestartup  路  6Comments

lennartschoch picture lennartschoch  路  4Comments

zjiekai picture zjiekai  路  6Comments

Skyost picture Skyost  路  3Comments

Eddydpyl picture Eddydpyl  路  6Comments