jujuba_svg 1.0.0 copy "jujuba_svg: ^1.0.0" to clipboard
jujuba_svg: ^1.0.0 copied to clipboard

A flutter library to handle SVG in flutter apps.

Welcome to the JujubaSVG library 👋 #

Welcome to the JujubaSVG library!

JujubaSVG library is a friendly library to handle SVG files in your Flutter app. The library allows you to manipulate piece by piece of your SVG. If you have an id for the element, you can access it to change background, stroke, and other things.

How to install? #

  • Coming soon

How to use? #

Let's say you want to use the library in your my_beatiful_screen.dart. You need to initialize the controller:

class MyBeautifulScreen extends StatelessWidget {
  final JujubaCommander commander = JujubaCommander();

  //...

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: JujubaSVGWidget(
            commander: commander,
            svgText: svgText,
            onElementClick: (nodeInfo) => {},
        ),
    )
//...

The library provides a widget called JujubaSVGWidget, there you can the commander, svgText, and onElementClick.

  • commander: allow you to send commands to manipulate the SVG;

  • svgText: your SVG;

  • onElementClick: callback to intercept click events in your SVG.

Sample project #

More details you can check in our sample project.

Android

[teaser showing the app working on Android with SVG image.]

iOS

[teaser showing the app working on Android with SVG image.]

How to contribute? #

  • Fork this repository;

  • Solve an issue, or do any improvement you want;

  • Open a PR to the origin repository.

As soon the PR is reviewed and merged, your update will be available.

3
likes
0
points
15
downloads

Publisher

verified publishercodandotv.com

Weekly Downloads

A flutter library to handle SVG in flutter apps.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on jujuba_svg