instrument_base_model 0.0.3 copy "instrument_base_model: ^0.0.3" to clipboard
instrument_base_model: ^0.0.3 copied to clipboard

仪器信息网 https://www.instrument.com.cn/ 前端Flutter 库

1
likes
110/ 160
pub points
11%
popularity

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

failed
Follow Dart file conventions
10 / 30trigger folding of the section

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 60 to 180 characters to describe the package, what it does, and its target use case.

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.

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

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

0/5 points: Provide a valid README.md

`README.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.

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.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

143 out of 229 API elements (62.4 %) have documentation comments.

Some symbols that are missing documentation: base_list_res, base_list_res.BaseListRes.BaseListRes.fromJson, base_list_res.BaseListRes.code, base_list_res.BaseListRes.data, base_list_res.BaseListRes.message.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:instrument_base_model/instrument_base_model.dart that imports:
  • package:instrument_base_model/https/http.dart that imports:
  • package:instrument_base_model/https/dio_manager.dart that imports:
  • package:dio_cookie_manager/dio_cookie_manager.dart that imports:
  • package:dio_cookie_manager/src/cookie_mgr.dart that imports:
  • package:cookie_jar/cookie_jar.dart that imports:
  • package:cookie_jar/src/file_storage.dart that imports:
  • dart:io

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:instrument_base_model/instrument_base_model.dart that imports:
  • package:instrument_base_model/https/http.dart that imports:
  • package:instrument_base_model/https/dio_manager.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:instrument_base_model/instrument_base_model.dart that imports:
  • package:instrument_base_model/https/http.dart that imports:
  • package:instrument_base_model/https/dio_manager.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `Windows`.

Because:

  • package:instrument_base_model/instrument_base_model.dart that imports:
  • package:instrument_base_model/https/http.dart that imports:
  • package:instrument_base_model/https/dio_manager.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `macOS`.

Because:

  • package:instrument_base_model/instrument_base_model.dart that imports:
  • package:instrument_base_model/https/http.dart that imports:
  • package:instrument_base_model/https/dio_manager.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:instrument_base_model/instrument_base_model.dart that imports:
  • package:instrument_base_model/https/http.dart that imports:
  • package:instrument_base_model/https/dio_manager.dart that imports:
  • package:dio_cookie_manager/dio_cookie_manager.dart that imports:
  • package:dio_cookie_manager/src/cookie_mgr.dart that imports:
  • package:cookie_jar/cookie_jar.dart that imports:
  • package:cookie_jar/src/file_storage.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 10 issues. Showing the first 2:

WARNING: Unused import: 'dart:io'.

lib/https/dio_manager.dart:1:8

  ╷
1 │ import 'dart:io';
  │        ^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/https/dio_manager.dart

WARNING: This function has a nullable return type of 'HttpClient?', but ends without returning a value.

lib/https/dio_manager.dart:85:18

   ╷
85 │         (client) {
   │                  ^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/https/dio_manager.dart

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest
connectivity_plus ^3.0.6 3.0.6 6.1.0
convert ^3.0.1 3.1.2 3.1.2
cookie_jar ^3.0.1 3.0.1 4.0.8
crypto ^3.0.1 3.0.6 3.0.6
decimal ^2.1.0 2.3.3 3.0.2
dio ^4.0.6 4.0.6 5.7.0
dio_cookie_manager ^2.0.0 2.0.0 3.1.1
flutter flutter 0.0.0 0.0.0
oktoast ^3.2.0 3.4.0 3.4.0
rational ^2.1.0 2.2.3 2.2.3
Transitive dependencies
Package Constraint Compatible Latest
args - 2.6.0 2.6.0
characters - 1.3.0 1.3.1
collection - 1.18.0 1.19.1
connectivity_plus_platform_interface - 1.2.4 2.0.1
dbus - 0.7.10 0.7.10
ffi - 2.1.3 2.1.3
flutter_web_plugins - 0.0.0 0.0.0
http_parser - 4.0.2 4.1.1
js - 0.6.7 0.7.1
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nm - 0.5.0 0.5.0
path - 1.9.1 1.9.1
petitparser - 6.0.2 6.0.2
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
string_scanner - 1.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
xml - 6.5.0 6.5.0

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

Found 5 issues. Showing the first 2:

The constraint `^3.0.6` on connectivity_plus does not support the stable version `4.0.0`.

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

The constraint `^3.0.1` on cookie_jar does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions cookie_jar 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.22.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.

1
likes
110
pub points
11%
popularity

Publisher

unverified uploader

仪器信息网 https://www.instrument.com.cn/ 前端Flutter 库

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, convert, cookie_jar, crypto, decimal, dio, dio_cookie_manager, flutter, oktoast, rational

More

Packages that depend on instrument_base_model