ecp_net 0.1.1
ecp_net: ^0.1.1 copied to clipboard
基于 Dio 的网络请求二次封装库,提供统一错误处理、数据转换、请求状态回调、State 生命周期绑定等功能,内部项目通用的 Dart 网络请求工具库。
We analyzed this package 23 hours ago, and awarded it 125 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description contains too many non-ASCII characters.
The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.
5/5 points: Provide a valid README.md
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.
10/10 points: Use an OSI-approved license
Detected license: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
OUT: Documenting ecp_net... Discovering libraries... Linking elements... Precaching local docs for 1737692 elements... Initialized dartdoc with 1537 libraries Generating docs for library ecp_net.dart from package:ecp_net/ecp_net.dart... Generating docs for library net.dart from package:ecp_net/net.dart... Documented 2 public libraries in 79.2 seconds ERR: warning: ambiguous reexport of convert_utils.convertToList, canonicalization candidates: (ecp_net, ecp_net) -> ecp_net (confidence 0.000) from convert_utils.convertToList: (file:///tmp/pana_FHGWFZ/lib/src/converts/convert_utils.dart:3:9) ecp_net: 2.177 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.1667)) ecp_net: 2.177 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.1667)) Use {@canonicalFor convert_utils.convertToList} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be displayed in navigation for the relevant pages. The flag [206 more lines]
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 5 issues. Showing the first 2:
INFO: Library names are not necessary.
lib/ecp_net.dart:3:9
╷
3 │ library ecp_net;
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/ecp_net.dart
INFO: Library names are not necessary.
lib/net.dart:1:9
╷
1 │ library ecp_net;
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/net.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
^2.8.1 |
2.13.1 | 2.13.1 | |
dio |
^5.7.0 |
5.11.1 | 5.11.1 | |
flutter_smart_dialog |
^5.1.1 |
5.3.0 | 5.3.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.1 | 1.4.1 | |
clock |
- | 1.1.3 | 1.1.3 | |
collection |
- | 1.19.1 | 1.19.1 | |
cupertino_ui |
- | 1.1.5 | 1.1.5 | |
dio_web_adapter |
- | 2.2.2 | 2.2.2 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
intl |
- | 0.20.3 | 0.20.3 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
material_ui |
- | 1.9.0 | 1.9.0 | |
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.
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.