get_net_work 1.0.5 copy "get_net_work: ^1.0.5" to clipboard
get_net_work: ^1.0.5 copied to clipboard

基础库

1
likes
60/ 160
pub points
76
downloads

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

Failed report section
Follow Dart file conventions
20 / 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.

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: get_net_work,
    • contains a version property, and,
    • does not contain a publish_to property.

pubspec.yaml from the repository defines publish_to, thus, we are unable to verify the package is published from here.

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

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

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

Detected license: Apache-2.0.

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

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

107 out of 448 API elements (23.9 %) have documentation comments.

Some symbols that are missing documentation: Input_formatter, Input_formatter.CustomTextInputFormatter, Input_formatter.CustomTextInputFormatter.CustomTextInputFormatter.new, Input_formatter.CustomTextInputFormatter.defaultDouble, Input_formatter.CustomTextInputFormatter.strToFloat.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

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

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

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:get_net_work/api/api.dart that imports:
  • package:get_net_work/api/net_work.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 `Linux`.

Because:

  • package:get_net_work/network.dart that imports:
  • package:get_net_work/widgets/webview.dart that imports:
  • package:webview_flutter/webview_flutter.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `macOS`.

Because:

  • package:get_net_work/api/api.dart that imports:
  • package:get_net_work/api/net_work.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 not compatible with platform Web

Because:

  • package:get_net_work/api/api.dart that imports:
  • package:get_net_work/api/api_repository.dart that imports:
  • package:get_net_work/api/api_provider.dart that imports:
  • package:get_net_work/api/base_api.dart that imports:
  • package:get_net_work/api/interceptors/interceptors.dart that imports:
  • package:get_net_work/api/interceptors/log_interceptor.dart that imports:
  • package:get_net_work/utils/log.dart that imports:
  • package:logger/logger.dart that imports:
  • package:logger/src/outputs/advanced_file_output_stub.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:get_net_work/api/api.dart that imports:
  • package:get_net_work/api/net_work.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:get_net_work/api/api.dart that imports:
  • package:get_net_work/api/net_work.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.

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 24 issues. Showing the first 2:

ERROR: The named parameter 'bodyText1' isn't defined.

lib/theme/theme_config.dart:19:11

   ╷
19 │           bodyText1: StandardTextStyle.normal,
   │           ^^^^^^^^^
   ╵

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

ERROR: The getter 'displayMetrics' isn't defined for the type 'AndroidDeviceInfo'.

lib/utils/device_info.dart:63:19

   ╷
63 │           ((build.displayMetrics.sizeInches * 10).roundToDouble() / 10),
   │                   ^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/utils/device_info.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
bot_toast ^4.0.4 4.1.3 4.1.3
common_utils ^2.1.0 2.1.0 2.1.0
connectivity_plus ^6.0.5 6.1.4 6.1.4
device_info_plus ^11.0.0 11.5.0 11.5.0
fbutton_nullsafety ^5.0.0 5.0.0 5.0.0
fcontrol_nullsafety ^2.0.0 2.0.0 2.0.0
flutter_app_update ^3.0.2 3.2.2 3.2.2
flutter_easyloading ^3.0.5 3.0.5 3.0.5
flutter_screenutil ^5.7.0 5.9.3 5.9.3
flutter_smart_dialog ^4.9.4 4.9.8+8 4.9.8+8
flutter_spinkit ^5.2.0 5.2.1 5.2.1
flutter_svg ^2.0.5 2.2.0 2.2.0
get ^4.6.5 4.7.2 4.7.2
get_storage ^2.1.1 2.1.1 2.1.1
jpush_flutter ^2.4.7 2.5.9 3.2.9
logger ^2.0.1 2.6.0 2.6.0
package_info_plus ^4.1.0 4.2.0 8.3.0
pull_to_refresh ^2.0.0 2.0.0 2.0.0
shared_preferences ^2.2.0 2.5.3 2.5.3
tapped ^2.0.0 2.0.0 2.0.0
webview_flutter ^4.2.2 4.13.0 4.13.0
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
connectivity_plus_platform_interface - 2.0.1 2.0.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
dbus - 0.7.11 0.7.11
decimal - 3.2.4 3.2.4
device_info_plus_platform_interface - 7.0.3 7.0.3
ffi - 2.1.4 2.1.4
file - 7.0.1 7.0.1
http - 1.4.0 1.4.0
http_parser - 4.1.2 4.1.2
intl - 0.20.2 0.20.2
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
nm - 0.5.0 0.5.0
package_info_plus_platform_interface - 2.0.1 3.2.0
path - 1.9.1 1.9.1
path_parsing - 1.1.0 1.1.0
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
petitparser - 6.1.0 7.0.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
rational - 2.2.3 2.2.3
shared_preferences_android - 2.4.10 2.4.10
shared_preferences_foundation - 2.5.4 2.5.4
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.1 1.10.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
vector_graphics - 1.1.19 1.1.19
vector_graphics_codec - 1.1.13 1.1.13
vector_graphics_compiler - 1.1.17 1.1.17
vector_math - 2.1.4 2.2.0
web - 1.1.1 1.1.1
webview_flutter_android - 4.7.0 4.7.0
webview_flutter_platform_interface - 2.13.1 2.13.1
webview_flutter_wkwebview - 3.22.0 3.22.0
win32 - 5.14.0 5.14.0
win32_registry - 2.1.0 2.1.0
xdg_directories - 1.1.0 1.1.0
xml - 6.5.0 6.6.0

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

The constraint `^2.4.7` on jpush_flutter does not support the stable version `3.0.0`.

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

The constraint `^4.1.0` on package_info_plus does not support the stable version `5.0.0`.

Try running dart pub upgrade --major-versions package_info_plus 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 8 errors:

  • UNDEFINED_NAMED_PARAMETER - lib/theme/theme_config.dart:19:11 - The named parameter 'bodyText1' isn't defined.
  • UNDEFINED_GETTER - lib/utils/device_info.dart:63:19 - The getter 'displayMetrics' isn't defined for the type 'AndroidDeviceInfo'.
  • UNDEFINED_GETTER - lib/utils/device_info.dart:64:35 - The getter 'displayMetrics' isn't defined for the type 'AndroidDeviceInfo'.

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.21, Flutter 3.32.4, Dart 3.8.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions: