interactive_svg 0.0.3
interactive_svg: ^0.0.3 copied to clipboard
A lightweight Flutter package for rendering SVGs with selectable, interactive regions, supporting hit-testing, bounds extraction, and zoom/scroll functionality.
We analyzed this package 2 days ago, and awarded it 140 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
91 out of 95 API elements (95.8 %) have documentation comments.
Some symbols that are missing documentation: interactive_svg, interactive_svg.$InteractiveParseContextCopyWith, interactive_svg.BoundsFactory.BoundsFactory.new, interactive_svg.InteractiveParserDelegate.InteractiveParserDelegate.new.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 13 issues. Showing the first 2:
INFO: Angle brackets will be interpreted as HTML.
lib/src/entities/interactive_parse_context.dart:23:16
╷
23 │ /// The root <svg> element of the parsed document.
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/entities/interactive_parse_context.dart
INFO: Unnecessary use of a block function body.
lib/src/entities/interactive_parser_delegate.g.dart:61:6
╷
61 │ }) {
│ ┌──────^
62 │ │ return InteractiveParseContext(
63 │ │ root: root == const $CopyWithPlaceholder()
64 │ │ ? _value.root
65 │ │ // ignore: cast_nullable_to_non_nullable
66 │ │ : root as XmlElement?,
67 │ │ document: document == const $CopyWithPlaceholder()
68 │ │ ? _value.document
69 │ │ // ignore: cast_nullable_to_non_nullable
70 │ │ : document as XmlDocument?,
71 │ │ viewBox: viewBox == const $CopyWithPlaceholder()
72 │ │ ? _value.viewBox
73 │ │ // ignore: cast_nullable_to_non_nullable
74 │ │ : viewBox as Rect?,
│ └──────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/entities/interactive_parser_delegate.g.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
^1.19.1 |
1.19.1 | 1.19.1 | |
copy_with_extension |
^11.0.0 |
11.0.0 | 18.0.0 | |
flutter_svg |
^2.3.0 |
2.3.0 | 2.3.0 | |
meta |
^1.16.0 |
1.19.0 | 1.19.0 | |
path_drawing |
^1.0.1 |
1.0.1 | 1.0.1 | |
vector_math |
^2.2.0 |
2.4.3 | 2.4.3 | |
xml |
^6.6.1 |
6.6.1 | 7.1.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.1 | 2.13.1 | |
characters |
- | 1.4.1 | 1.4.1 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
path |
- | 1.9.1 | 1.9.1 | |
path_parsing |
- | 1.1.0 | 1.1.0 | |
petitparser |
- | 7.1.0 | 7.1.0 | |
source_span |
- | 1.10.2 | 1.10.2 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_graphics |
- | 1.2.4 | 1.2.4 | |
vector_graphics_codec |
- | 1.1.13 | 1.1.13 | |
vector_graphics_compiler |
- | 1.3.2 | 1.3.2 | |
web |
- | 1.1.1 | 1.1.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^11.0.0` on copy_with_extension does not support the stable version `12.0.0`.
Try running dart pub upgrade --major-versions copy_with_extension to update the constraint.
The constraint `^6.6.1` on xml does not support the stable version `7.0.0`.
Try running dart pub upgrade --major-versions xml to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.19, Flutter 3.47.7, Dart 3.13.5.
Check the analysis log for details.