vector_drawable 0.0.1 copy "vector_drawable: ^0.0.1" to clipboard
vector_drawable: ^0.0.1 copied to clipboard

A vector drawable package for flutter

40/ 160
pub points
24
downloads

We analyzed this package 19 hours ago, and awarded it 40 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too short.

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

  • pubspec.yaml doesn't have a homepage entry.

  • pubspec.yaml doesn't have a repository entry.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

55 out of 348 API elements (15.8 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: vector_drawable, vector_drawable.AnimatedVector, vector_drawable.AnimatedVector.AnimatedVector.new, vector_drawable.AnimatedVector.children, vector_drawable.AnimatedVector.clone.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
0 / 20trigger folding of the section

Failed check 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 157 issues. Showing the first 2:

ERROR: The argument type 'dynamic Function(String)' can't be assigned to the parameter type 'RepeatMode? Function(String)'.

lib/src/parsing/animation.dart:134:61

    ╷
134 │     repeatMode: node.getAndroidAttribute('repeatMode')?.map(_parseRepeatMode) ??
    │                                                             ^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/parsing/animation.dart

ERROR: The name 'RepeatMode' is defined in the libraries 'package:flutter/src/widgets/repeating_animation_builder.dart (via package:flutter/material.dart)' and 'package:vector_drawable/src/model/animation.dart'.

lib/src/parsing/animation.dart:135:9

    ╷
135 │         RepeatMode.repeat,
    │         ^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/parsing/animation.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
path_parsing ^1.0.0 1.1.0 1.1.0
value_listenables any 0.0.2-prerelease.20 0.0.2-prerelease.20
vector_math any 2.2.0 2.2.0
xml ^5.3.1 5.4.1 6.6.1
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.13.0 0.13.0
meta - 1.17.0 1.18.1
petitparser - 5.4.0 7.0.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^5.3.1` on xml does not support the stable version `6.0.0`.

Try running dart pub upgrade --major-versions xml to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 7 errors:

  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/src/parsing/animation.dart:134:61 - The argument type 'dynamic Function(String)' can't be assigned to the parameter type 'RepeatMode? Function(String)'.
  • AMBIGUOUS_IMPORT - lib/src/parsing/animation.dart:135:9 - The name 'RepeatMode' is defined in the libraries 'package:flutter/src/widgets/repeating_animation_builder.dart (via package:flutter/material.dart)' and 'package:vector_drawable/src/model/animation.dart'.
  • AMBIGUOUS_IMPORT - lib/src/parsing/animation.dart:163:1 - The name 'RepeatMode' is defined in the libraries 'package:flutter/src/widgets/repeating_animation_builder.dart (via package:flutter/material.dart)' and 'package:vector_drawable/src/model/animation.dart'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.10, Flutter 3.41.2, Dart 3.11.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
40
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A vector drawable package for flutter

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, path_parsing, value_listenables, vector_math, xml

More

Packages that depend on vector_drawable