built_svg_path 0.0.2

  • Readme
  • Changelog
  • Installing
  • 44

built_svg_path #

Precompile Path from xml svg definition

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.

Use this package as a library

1. Depend on it

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

  built_svg_path: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:built_svg_path/generator.dart';
import 'package:built_svg_path/model.dart';
import 'package:built_svg_path/parser.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Nov 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21


Detected platforms: Flutter, other

Platform components identified in package: io.

Health issues and suggestions

Document public APIs. (-1 points)

50 out of 50 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix bin/built_svg_path.dart. (-1 points)

Analysis of bin/built_svg_path.dart reported 2 hints:

line 13 col 5: DO use curly braces for all flow control structures.

line 15 col 5: DO use curly braces for all flow control structures.

Fix lib/parser.dart. (-1 points)

Analysis of lib/parser.dart reported 2 hints:

line 34 col 47: Use isNotEmpty for Iterables and Maps.

line 98 col 13: Use isNotEmpty instead of length

Format lib/generator.dart.

Run dartfmt to format lib/generator.dart.

Format lib/model.dart.

Run dartfmt to format lib/model.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and built_svg_path.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

The package description is too short. (-4 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
args ^1.5.1 1.5.2
code_builder ^3.1.3 3.2.1
dart_style ^1.2.0 1.3.3
path_parsing ^0.1.3 0.1.4
recase ^2.0.0 2.0.1
source_gen ^0.9.1 0.9.4+6
xml ^3.2.3 3.5.0
Transitive dependencies
_fe_analyzer_shared 1.0.0
analyzer 0.39.1
async 2.4.0
build 1.2.2
built_collection 4.3.0
built_value 7.0.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
fixnum 0.10.11
front_end 0.1.29
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
kernel 0.3.29
logging 0.11.3+2
matcher 0.12.6
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
petitparser 2.4.0
pub_semver 1.4.2
quiver 2.1.2+1
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
watcher 0.9.7+12
yaml 2.2.0