Home

Awesome

flutter_svg

Pub Coverage Status

<!-- markdownlint-disable MD033 --> <img src="https://raw.githubusercontent.com/dnfield/flutter_svg/7d374d7107561cbd906d7c0ca26fef02cc01e7c8/example/assets/flutter_logo.svg?sanitize=true" width="200px" alt="Flutter Logo which can be rendered by this package!"> <!-- markdownlint-enable MD033 -->

Draw SVG files using Flutter.

Overview

This library consists of two packages: flutter_svg and flutter_svg_test .

flutter_svg provides a wrapper around Dart implementations of SVG parsing, including SVG path data. In particular, it provides efficient BytesLoader implementations for package:vector_graphics. The package is easier to use but not as performant as using the vector_graphics and vector_graphics_compiler packages directly. Those packages allow you to do ahead-of-time compilation and optimization of SVGs, and offer some more performant rasterization strategies at runtime.

flutter_svg_test provides a set of functions to find images generated by flutter_svg in widget tests.

Out of scope/non-goals

Alternatives