plug_notas 1.0.1
plug_notas: ^1.0.1 copied to clipboard
Pacote Flutter para integração com API PlugNotas (NF-e/NFC-e/NFS-e)
We analyzed this package 3 days ago, and awarded it 60 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
36 out of 97 API elements (37.1 %) have documentation comments.
Some symbols that are missing documentation: plug_notas.AuthenticationException.AuthenticationException.new, plug_notas.COFINS.COFINS.fromJson, plug_notas.COFINS.COFINS.new, plug_notas.Destinatario.Destinatario.fromJson, plug_notas.Destinatario.Destinatario.new.
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 55 issues. Showing the first 2:
ERROR: The type 'DioExceptionType' isn't exhaustively matched by the switch cases since it doesn't match the pattern 'DioExceptionType.transformTimeout'.
lib/src/core/network/plug_notas_interceptor.dart:35:5
╷
35 │ switch (error.type) {
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/core/network/plug_notas_interceptor.dart
ERROR: The method 'toJson' isn't defined for the type 'NFe'.
lib/src/features/fiscal/data/repositories/fiscal_repository_impl.dart:15:25
╷
15 │ final nfeJson = nfe.toJson();
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/features/fiscal/data/repositories/fiscal_repository_impl.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
dio |
^5.4.0 |
5.11.1 | 5.11.1 | |
freezed_annotation |
^3.0.0 |
3.1.0 | 3.1.0 | |
get_it |
^8.0.0 |
8.3.0 | 9.3.0 | |
json_annotation |
^4.9.0 |
4.12.0 | 4.12.0 | |
uuid |
^4.2.2 |
4.6.0 | 4.6.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
- | 2.13.1 | 2.13.1 | |
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.8 | 3.0.8 | |
dio_web_adapter |
- | 2.2.2 | 2.2.2 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
listen |
- | 1.0.1 | 1.0.1 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
mime |
- | 2.1.0 | 2.1.0 | |
path |
- | 1.9.1 | 1.9.1 | |
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_math |
- | 2.4.4 | 2.4.4 | |
web |
- | 1.1.2 | 1.1.2 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^8.0.0` on get_it does not support the stable version `9.0.0`.
Try running dart pub upgrade --major-versions get_it to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 54 errors:
UNDEFINED_METHOD-lib/src/features/fiscal/data/repositories/fiscal_repository_impl.dart:15:25- The method 'toJson' isn't defined for the type 'NFe'.UNDEFINED_METHOD-lib/src/features/fiscal/data/repositories/fiscal_repository_impl.dart:35:27- The method 'toJson' isn't defined for the type 'NFSe'.URI_DOES_NOT_EXIST-lib/src/features/nfe/domain/entities/destinatario.dart:4:6- Target of URI doesn't exist: 'package:plug_notas/src/features/nfe/domain/entities/destinatario.freezed.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.19, Flutter 3.50.0, Dart 3.14.0.
Check the analysis log for details.