dd_js_util 2.2.8 copy "dd_js_util: ^2.2.8" to clipboard
dd_js_util: ^2.2.8 copied to clipboard

outdated

梁典典的常用工具类封装

1
likes
65/ 160
pub points
1.31k
downloads

We analyzed this package 5 hours ago, and awarded it 65 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 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.

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

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

279 out of 777 API elements (35.9 %) have documentation comments.

Some symbols that are missing documentation: dd_js_util, dd_js_util.AppCoreApi.AppCoreApi.new, dd_js_util.AppException.AppException.appError, dd_js_util.AppException.AppException.create, dd_js_util.AppException.AppException.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 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Web

These platforms are not supported:

Package does not support platform `Linux`.

Because:

  • package:dd_js_util/dd_js_util.dart that declares support for platforms: Android, iOS, Windows, Web.
Package does not support platform `macOS`.

Because:

  • package:dd_js_util/dd_js_util.dart that declares support for platforms: Android, iOS, Windows, Web.

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

Package does not support platform `Windows`.

Because:

  • package:dd_js_util/dd_js_util.dart that imports:
  • package:image_gallery_saver/image_gallery_saver.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:dd_js_util/dd_js_util.dart that imports:
  • package:permission_handler/permission_handler.dart that declares support for platforms: Android, iOS, Windows.

Failed check 0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

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

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

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

Found 75 issues. Showing the first 2:

ERROR: The argument type 'Null Function(dynamic, dynamic)' can't be assigned to the parameter type 'FResultCallback

lib/mixin/brocase/index.dart:13:70

   ╷
13 │       FBroadcast.systemInstance.register(WrapJsonBroadcase.value.text, (value, callback) {
   │ ┌──────────────────────────────────────────────────────────────────────^
14 │ │       if(value is WrapJson){
15 │ │         handleWrapJson(value);
16 │ │       }
17 │ │     });
   │ └─────^
   ╵

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

ERROR: Missing concrete implementations of 'CupertinoLocalizations.datePickerStandaloneMonth', 'getter CupertinoLocalizations.clearButtonLabel', 'getter CupertinoLocalizations.lookUpButtonLabel', 'getter CupertinoLocalizations.menuDismissLabel', and 3 more.

lib/widget/date/custom_year_picker.dart:1262:7

     ╷
1262 │ class ZhCupertinoLocalizations implements CupertinoLocalizations {
     │       ^^^^^^^^^^^^^^^^^^^^^^^^
     ╵

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

Failed report section
Support up-to-date dependencies
10 / 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
cached_network_image ^3.2.3 3.4.1 3.4.1
common_utils ^2.1.0 2.1.0 2.1.0
diox ^5.0.0-dev.3 5.0.0 5.0.0 Discontinued
extended_image ^6.3.4 6.4.1 10.0.1
extended_image_library ^3.4.1 3.6.0 5.0.0
fbroadcast_nullsafety ^3.0.0 3.0.7 4.0.6
ffloat_nullsafety ^3.3.1 3.3.6 3.3.6
flex_color_scheme ^6.1.2 6.1.2 8.2.0
flutter_cache_manager ^3.3.0 3.4.1 3.4.1
flutter_easyrefresh ^2.2.2 2.2.2 2.2.2 Discontinued
flutter_image_compress ^1.1.3 1.1.3 2.4.0
flutter_lints ^2.0.1 2.0.3 5.0.0
flutter_screenutil ^5.6.0 5.9.3 5.9.3
flutter_smart_dialog ^4.8.2 4.9.8+7 4.9.8+7
flutter_swiper_null_safety_flutter3 ^3.0.0 3.0.1 4.0.3
hive ^2.2.3 2.2.3 2.2.3
hive_flutter ^1.1.0 1.1.0 1.1.0
hooks_riverpod ^2.1.3 2.6.1 2.6.1
html ^0.15.1 0.15.5+1 0.15.5+1
image ^4.0.12 4.5.4 4.5.4
image_gallery_saver ^1.7.1 1.7.1 2.0.3
image_picker ^0.8.6+1 0.8.9 1.1.2
logger ^1.1.0 1.4.0 2.5.0
permission_handler ^10.2.0 10.4.5 12.0.0+1
riverpod ^2.1.3 2.6.1 2.6.1
url_launcher ^6.1.8 6.3.1 6.3.1
waterfall_flow ^3.0.2 3.1.1 3.1.1
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 4.0.6 4.0.6
async - 2.13.0 2.13.0
cached_network_image_platform_interface - 4.1.1 4.1.1
cached_network_image_web - 1.3.1 1.3.1
characters - 1.4.0 1.4.0
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
cross_file - 0.3.4+2 0.3.4+2
crypto - 3.0.6 3.0.6
csslib - 1.0.2 1.0.2
decimal - 3.0.2 3.2.1
extended_list_library - 3.0.0 3.0.0
ffi - 2.1.4 2.1.4
file - 7.0.1 7.0.1
file_selector_linux - 0.9.3+2 0.9.3+2
file_selector_macos - 0.9.4+2 0.9.4+2
file_selector_platform_interface - 2.6.2 2.6.2
file_selector_windows - 0.9.3+4 0.9.3+4
fixnum - 1.1.1 1.1.1
flex_seed_scheme - 1.5.0 3.5.1
flutter_hooks - 0.21.2 0.21.2
flutter_plugin_android_lifecycle - 2.0.28 2.0.28
flutter_riverpod - 2.6.1 2.6.1
http - 1.3.0 1.3.0
http_client_helper - 3.0.0 3.0.0
http_parser - 4.1.2 4.1.2
image_picker_android - 0.8.12+23 0.8.12+23
image_picker_for_web - 2.2.0 3.0.6
image_picker_ios - 0.8.12+2 0.8.12+2
image_picker_linux - 0.2.1+2 0.2.1+2
image_picker_macos - 0.2.1+2 0.2.1+2
image_picker_platform_interface - 2.10.1 2.10.1
image_picker_windows - 0.2.1+1 0.2.1+1
intl - 0.19.0 0.20.2
js - 0.6.7 0.7.2 Discontinued
lints - 2.1.1 6.0.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.16.0 1.16.0
mime - 1.0.6 2.0.0
octo_image - 2.1.0 2.1.0
path - 1.9.1 1.9.1
path_provider - 2.1.5 2.1.5
path_provider_android - 2.2.17 2.2.17
path_provider_foundation - 2.4.1 2.4.1
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
permission_handler_android - 10.3.6 13.0.1
permission_handler_apple - 9.1.4 9.4.7
permission_handler_platform_interface - 3.12.0 4.3.0
permission_handler_windows - 0.1.3 0.2.1
petitparser - 6.1.0 6.1.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
posix - 6.0.2 6.0.2
rational - 2.2.3 2.2.3
rxdart - 0.28.0 0.28.0
source_span - 1.10.1 1.10.1
sprintf - 7.0.0 7.0.0
sqflite - 2.4.2 2.4.2
sqflite_android - 2.4.1 2.4.1
sqflite_common - 2.5.5 2.5.5
sqflite_darwin - 2.4.2 2.4.2
sqflite_platform_interface - 2.4.0 2.4.0
stack_trace - 1.12.1 1.12.1
state_notifier - 1.0.0 1.0.0
string_scanner - 1.4.1 1.4.1
synchronized - 3.3.1 3.3.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
url_launcher_android - 6.3.16 6.3.16
url_launcher_ios - 6.3.3 6.3.3
url_launcher_linux - 3.2.1 3.2.1
url_launcher_macos - 3.2.2 3.2.2
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.4.0 2.4.0
url_launcher_windows - 3.1.4 3.1.4
uuid - 4.5.1 4.5.1
vector_math - 2.1.4 2.1.5
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0
xml - 6.5.0 6.5.0

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

Found 12 issues. Showing the first 2:

The constraint `^6.3.4` 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.

The constraint `^3.4.1` on extended_image_library does not support the stable version `4.0.0`.

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

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2 errors:

  • NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER - lib/widget/date/custom_year_picker.dart:1262:7 - Missing concrete implementations of 'CupertinoLocalizations.datePickerStandaloneMonth', 'getter CupertinoLocalizations.clearButtonLabel', 'getter CupertinoLocalizations.lookUpButtonLabel', 'getter CupertinoLocalizations.menuDismissLabel', and 3 more.
  • INVALID_OVERRIDE - lib/widget/date/custom_year_picker.dart:1312:10 - 'ZhCupertinoLocalizations.datePickerDayOfMonth' ('String Function(int)') isn't a valid override of 'CupertinoLocalizations.datePickerDayOfMonth' ('String Function(int, [int?])').

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.20, Flutter 3.29.2, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions: