svg_path_parser
v1.1.2A Flutter/Dart utility to parse an SVG path into a equivalent Path object from dart:ui library.
Архив пакета: https://pubdev.letsnova.ru/api/archives/svg_path_parser/1.1.2.tar.gz
Установка
dart pub add svg_path_parserREADME
svg_path_parser
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_parser: ^1.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).
История изменений
[1.1.2] - 03-December-2023
- Fix issue with shorthand control points calc
[1.1.1] - 19-July-2021
- Allow Flags without separators in cubic Bézier curves see details here: issue#6
[1.1.0] - 19-July-2021
- Fixed an issue where using an absolute command after
a relative command will lead to wrong parsing behavior.
See details here: issue#7
[1.0.0] - 7-March-2021
- Added null safety support
- Fixed unable to parse the sequence
H 4and similar. issue - Fix Typo in README
[0.1.1] - 31-May-2020
- Added flag failSilently to parseSvgPath which will return an empty Path object if the provided path is invalid.
[0.1.0] - 18-April-2020
Changes:
- Added example
- Added Testcase for Parser
- Added Docs for Parser
[0.0.9] - 17-April-2020
- Initial Development release.
- Added Testcase
