Skip to content

SVG parsing, rendering, and widget library for Flutter

License

Notifications You must be signed in to change notification settings

bramp/flutter_svg

 
 

Repository files navigation

flutter_svg

Pub Coverage Status

Flutter Logo which can be rendered by this package!

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

  • SMIL animations. That just seems crazy. I think it'll be possible to animate the SVG but probably in a more Flutter driven way.
  • Interactivity/events in SVG.
  • Any CSS support - preprocess your SVGs (perhaps with usvg or scour to get rid of all CSS?).
  • Scripting in SVGs
  • Foreign elements
  • Rendering properties/hints

Alternatives

About

SVG parsing, rendering, and widget library for Flutter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 69.4%
  • C++ 16.6%
  • CMake 10.6%
  • C 1.0%
  • Swift 0.8%
  • HTML 0.8%
  • Other 0.8%