v1.1.2
svg_path_parser
SVG 경로를 dart:ui 라이브러리의 동등한 Path 객체로 변환하는 Flutter/Dart 유틸리티입니다.
61좋아요 1.7만30일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
SVG 경로를 dart:ui 라이브러리의 동등한 Path 객체로 변환하는 Flutter/Dart 유틸리티입니다.
^1.1.0{"sdk":"flutter"}{"sdk":"flutter"}^1.16.5아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.
Add this to your package's pubspec.yaml file:
dependencies:
svg_path_parser: ^1.1.2
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');
View the example folder to see an example (drawing flutter logo using svg paths).