Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

CodandoTV/panda-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the PandaSVG library 👋

Welcome to the PandaSVG library!

PandaSVG 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 PandaCommander commander = PandaCommander();

  //...

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

The library provides a widget called PandaWidget, 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Generated from CodandoTV/todoapp_flutter