piksel_svg 0.2.1
piksel_svg: ^0.2.1 copied to clipboard
SVG decoder plugin for piksel. Adds vector SVG support behind the same ImageRequest pipeline — caching, sizing and transforms included.
piksel_svg #
SVG support for piksel. Registers a decoder that renders SVG through the same widget, cache and transform pipeline as raster images.
Piksel.configure(Piksel(
components: const ComponentRegistry(decoders: [SvgDecoder()]),
));
PikselImage.network('https://example.com/logo.svg');
Format detection uses the response mime type and magic-byte sniffing
(<svg / <?xml), so extension-less URLs work.
