hgg_base 1.0.8 copy "hgg_base: ^1.0.8" to clipboard
hgg_base: ^1.0.8 copied to clipboard

一个新的 flutter 基础库

1
likes
115/ 160
pub points
0%
popularity

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

failed
Follow Dart file conventions
15 / 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.

Homepage URL is insecure.

Update the homepage field and use a secure (https) URL.

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: BSD-3-Clause.

failed
Provide documentation
10 / 20trigger folding of the section

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

1080 out of 2248 API elements (48.0 %) have documentation comments.

Some symbols that are missing documentation: hgg_base, hgg_base.AddSubscription, hgg_base.ApiInterceptor.doShowErrorMsg, hgg_base.ApiInterceptor.isShowErrorMsg, hgg_base.ApiInterceptor.mapToRespData.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add 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:hgg_base/hgg_base.dart that imports:
  • package:hgg_base/src/utils/x_sp.dart that imports:
  • package:hgg_base/src/utils/x_log.dart that imports:
  • package:logger/logger.dart that imports:
  • package:logger/src/outputs/file_output_stub.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:hgg_base/hgg_base.dart that imports:
  • package:hgg_base/src/widgets/x_get_bind.dart that imports:
  • package:get/get.dart that imports:
  • package:get/route_manager.dart that imports:
  • package:get/get_navigation/get_navigation.dart that imports:
  • package:get/get_navigation/src/root/get_material_app.dart that imports:
  • package:get/get_utils/get_utils.dart that imports:
  • package:get/get_utils/src/platform/platform.dart that imports:
  • package:get/get_utils/src/platform/platform_web.dart that imports:
  • dart:html

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.

partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 4 issues. Showing the first 2:

INFO: Dangling library doc comment.

lib/src/utils/x_date_util.dart:1:1

  ╷
1 │ ┌ /// 一些常用格式参照。可以自定义格式,例如:"yyyy/MM/dd HH:mm:ss","yyyy/M/d HH:mm:ss"。
2 │ │ /// 格式要求
3 │ │ /// year -> yyyy/yy   month -> MM/M    day -> dd/d
4 │ │ /// hour -> HH/H      minute -> mm/m   second -> ss/s
5 │ └ ///
  ╵

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

/tmp/pana_LUJHUU/lib/src/http/api_interceptor.dart doesn't match the Dart formatter.

To format your files run: dart format .

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
bot_toast ^4.0.1 4.1.3 4.1.3
dio ^4.0.4 4.0.6 5.7.0
extended_image ^6.0.1 6.4.1 9.0.7
flutter flutter 0.0.0 0.0.0
flutter_screenutil ^5.0.1 5.9.3 5.9.3
get ^4.5.1 4.6.6 4.6.6
get_storage ^2.0.3 2.1.1 2.1.1
logger ^1.1.0 1.4.0 2.4.0
path_provider ^2.0.8 2.1.5 2.1.5
pull_to_refresh ^2.0.0 2.0.0 2.0.0
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
characters - 1.3.0 1.3.1
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
extended_image_library - 3.6.0 4.0.5
ffi - 2.1.3 2.1.3
http - 1.2.2 1.2.2
http_client_helper - 3.0.0 3.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
path - 1.9.1 1.9.1
path_provider_android - 2.2.12 2.2.12
path_provider_foundation - 2.4.0 2.4.0
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
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
web - 1.1.0 1.1.0
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 `^4.0.4` on dio does not support the stable version `5.0.0`.

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

The constraint `^6.0.1` on extended_image does not support the stable version `7.0.0`.

Try running dart pub upgrade --major-versions extended_image 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.