ecp_net 0.0.9 copy "ecp_net: ^0.0.9" to clipboard
ecp_net: ^0.0.9 copied to clipboard

基于 Dio 的网络请求二次封装库,提供统一错误处理、数据转换、请求状态回调、State 生命周期绑定等功能,内部项目通用的 Dart 网络请求工具库。

115/ 160
pub points
46
downloads

We analyzed this package 11 days ago, and awarded it 115 pub points (of a possible 160):

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

Failed check 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.

Homepage URL doesn't exist.

At the time of the analysis https://gitlab.ctbiyi.com/appgroup/flutter/baselib/ecp_net was unreachable. Make sure that the website is reachable via HEAD requests.

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

Failed check 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.

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

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

Failed check 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 1240528 elements... Initialized dartdoc with 1226 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 59.6 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_BPWWBX/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]

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

  • ✓ Web

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:ecp_net/ecp_net.dart that imports:
  • package:ecp_net/net.dart that imports:
  • package:ecp_net/src/requests/net_request.dart that imports:
  • package:ecp_net/src/net_config.dart that imports:
  • package:ecp_net/src/interceptors/net_interceptor.dart that imports:
  • package:connectivity/connectivity.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `Linux`.

Because:

  • package:ecp_net/ecp_net.dart that imports:
  • package:ecp_net/net.dart that imports:
  • package:ecp_net/src/requests/net_request.dart that imports:
  • package:ecp_net/src/net_config.dart that imports:
  • package:ecp_net/src/interceptors/net_interceptor.dart that imports:
  • package:connectivity/connectivity.dart that declares support for platforms: Android, iOS, macOS, Web.

WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 4 issues. Showing the first 2:

INFO: Missing type annotation.

lib/src/extensions/log_extension.dart:6:3

  ╷
6 │   log() {
  │   ^^^
  ╵

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

INFO: Don't invoke 'print' in production code.

lib/src/extensions/log_extension.dart:8:7

  ╷
8 │       print("$this");
  │       ^^^^^
  ╵

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

Failed report section
Support up-to-date dependencies
30 / 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
async ^2.8.1 2.13.1 2.13.1
connectivity ^3.0.6 3.0.6 3.0.6 Discontinued
dio ^5.7.0 5.11.1 5.11.1
flutter_smart_dialog ^4.3.1 4.9.8+10 5.3.0
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
connectivity_for_web - 0.4.0+1 0.4.0+1 Discontinued
connectivity_macos - 0.2.1+2 0.2.1+2
connectivity_platform_interface - 2.0.1 2.0.1
dio_web_adapter - 2.2.2 2.2.2
http_parser - 4.1.2 4.1.2
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
plugin_platform_interface - 2.1.8 2.1.8
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.2 2.4.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 `^4.3.1` on flutter_smart_dialog does not support the stable version `5.0.0`.

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

The package has one or more discontinued direct dependencies.

Discontinued packages are no longer maintained, and can end up being a liability.

Consider migrating away from these dependencies:

  • connectivity.

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

Passed check 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.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
115
points
46
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

基于 Dio 的网络请求二次封装库,提供统一错误处理、数据转换、请求状态回调、State 生命周期绑定等功能,内部项目通用的 Dart 网络请求工具库。

Homepage

License

MIT (license)

Dependencies

async, connectivity, dio, flutter, flutter_smart_dialog

More

Packages that depend on ecp_net