svg_path_parser 0.1.1
svg_path_parser: ^0.1.1

Flutter Android iOS web

A Flutter/Dart utility to parse an SVG path into a equivalent Path object from dart:ui library.

svg_path_parser #

Pub Version (including pre-releases) Flutter Test package

A Flutter/Dart utility to parse an SVG path into a equivalent Path object from dart:ui library.

Getting Started #

Add this to your package's pubspec.yaml file:

dependencies:
  svg_path_parse: ^0.1.1

Now in your Dart code, you can use:

import 'package:svg_path_parser/svg_path_parser.dart';

You can use parseSvgPath() to parse a valid SVG path string to Path object;

Path path = parseSvgPath('m.29 47.85 14.58 14.57 62.2-62.2h-29.02z');

Examples #

View the example folder to see an example (drawing flutter logo using svg paths).

11
likes
110
pub points
78%
popularity

Publisher

masterashu.codes

A Flutter/Dart utility to parse an SVG path into a equivalent Path object from dart:ui library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, string_scanner

More

Packages that depend on svg_path_parser