Code Monkey home page Code Monkey logo

kssss / flutter_svg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dnfield/flutter_svg

0.0 0.0 0.0 2.75 MB

这个包提供了一个关于SVG解析的Dart实现的包装,包括SVG路径数据。特别是,它为包vector_graphics提供了高效的BytesLoader实现。此软件包更易于使用,但性能不如直接使用vector_graphics和vector_ggraphics_compiler软件包。这些包允许您提前编译和优化SVG,并在运行时提供一些更高性能的光栅化策略。

License: MIT License

Shell 0.26% C++ 17.68% C 1.03% Objective-C 0.57% Kotlin 0.09% Dart 67.45% Swift 0.84% HTML 0.81% CMake 11.26%

flutter_svg's Introduction

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

flutter_svg's People

Contributors

amreniouinnovent avatar aschiavon91 avatar bselwe avatar carlosjimenezrams avatar christianalfoni avatar dballesteros7 avatar dnfield avatar feinstein avatar feodorfitsner avatar flar avatar gahms avatar gmlewis avatar goderbauer avatar gspencergoog avatar jason-simmons avatar jnschulze avatar jonahwilliams avatar krispypen avatar lufan avatar mehmetf avatar meiwin avatar michaelrfairhurst avatar mrbirb avatar muzzah avatar omidraha avatar pento avatar phanirithvij avatar srawlins avatar sroddy avatar wkornewald avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.