base_api 2.1.2 copy "base_api: ^2.1.2" to clipboard
base_api: ^2.1.2 copied to clipboard

网络请求库

100/ 160
pub points
304
downloads

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

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

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

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

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.

`CHANGELOG.md` does not contain reference to the current version ("2.1.2").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

Failed check 0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

297 out of 497 API elements (59.8 %) have documentation comments.

Some symbols that are missing documentation: base_api, base_api, base_api.BackgroundTransformer.BackgroundTransformer.new, base_api.BaseApi, base_api.BaseApi.BaseApi.new.

Passed check 10/10 points: Package has an example

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

Passed check 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:base_api/api.dart that imports:
  • package:base_api/down_load/base_download_api.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:base_api/api.dart that imports:
  • package:base_api/down_load/base_download_api.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.cn/web/wasm for details.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

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

Found 22 issues. Showing the first 2:

WARNING: Unused import: 'package:dio/dio.dart'.

lib/handles.dart:1:8

  ╷
1 │ import 'package:dio/dio.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^
  ╵

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

WARNING: Unused import: 'dart:math'.

lib/src/interceptors/cache.dart:1:8

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

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/interceptors/cache.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
archive ^3.6.1 3.6.1 4.0.7
camera ^0.10.5+9 0.10.6 0.11.3
dio ^5.3.4 5.9.0 5.9.0
dio_cache_interceptor ^3.5.0 3.5.1 4.0.5
get ^4.6.6 4.7.2 4.7.2
path_provider ^2.1.3 2.1.5 2.1.5
webview_flutter ^4.4.4 4.13.0 4.13.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
camera_android - 0.10.10+11 0.10.10+11
camera_avfoundation - 0.9.22+4 0.9.22+4
camera_platform_interface - 2.12.0 2.12.0
camera_web - 0.3.5 0.3.5
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
cross_file - 0.3.5 0.3.5
crypto - 3.0.7 3.0.7
dio_web_adapter - 2.1.1 2.1.1
ffi - 2.1.4 2.1.4
fixnum - 1.1.1 1.1.1
flutter_plugin_android_lifecycle - 2.0.32 2.0.32
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
mime - 2.0.0 2.0.0
path - 1.9.1 1.9.1
path_provider_android - 2.2.20 2.2.20
path_provider_foundation - 2.4.3 2.4.3
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
source_span - 1.10.1 1.10.1
stream_transform - 2.1.1 2.1.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
uuid - 4.5.2 4.5.2
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
webview_flutter_android - 4.10.5 4.10.5
webview_flutter_platform_interface - 2.14.0 2.14.0
webview_flutter_wkwebview - 3.23.2 3.23.2
xdg_directories - 1.1.0 1.1.0

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

Found 3 issues. Showing the first 2:

The constraint `^3.6.1` on archive does not support the stable version `4.0.0`.

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

The constraint `^0.10.5+9` on camera does not support the stable version `0.11.0`.

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

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.1, Flutter 3.38.0, Dart 3.10.0-290.4.beta.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
100
points
304
downloads

Publisher

unverified uploader

Weekly Downloads

网络请求库

Documentation

API reference

License

unknown (license)

Dependencies

archive, camera, dio, dio_cache_interceptor, flutter, get, path_provider, webview_flutter

More

Packages that depend on base_api