这是indexloc提供的服务,不要输入任何密码

connectivity_wrapper 1.2.8 copy "connectivity_wrapper: ^1.2.8" to clipboard
connectivity_wrapper: ^1.2.8 copied to clipboard

A new Flutter package which provides network-aware widgets.It allows Flutter apps provide feedback on your app when it's not connected to it, or when there's no connection.

140/ 160
pub points
1.51k
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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: MIT.

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

54 out of 58 API elements (93.1 %) have documentation comments.

Some symbols that are missing documentation: connectivity_wrapper.ConnectivityScreenWrapper.ConnectivityScreenWrapper.new, connectivity_wrapper.ConnectivityWidgetWrapper.ConnectivityWidgetWrapper.new, connectivity_wrapper.ConnectivityWrapper.addresses, connectivity_wrapper.ConnectivityWrapper.lastStatus.

Passed check 10/10 points: Package has an example and has no issues with screenshots

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:connectivity_wrapper/connectivity_wrapper.dart that imports:
  • package:connectivity_wrapper/src/models/address_check_result.dart that imports:
  • package:connectivity_wrapper/src/models/address_check_options.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:connectivity_wrapper/connectivity_wrapper.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:connectivity_wrapper/connectivity_wrapper.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:connectivity_wrapper/connectivity_wrapper.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:connectivity_wrapper/connectivity_wrapper.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

Package not compatible with runtime wasm

Because:

  • package:connectivity_wrapper/connectivity_wrapper.dart that imports:
  • package:connectivity_wrapper/src/models/address_check_result.dart that imports:
  • package:connectivity_wrapper/src/models/address_check_options.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.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

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

INFO: Missing type annotation.

lib/connectivity_wrapper.dart:209:3

    ╷
209 │   _maybeEmitStatusUpdate([Timer? timer]) async {
    │   ^^^^^^^^^^^^^^^^^^^^^^
    ╵

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

INFO: Missing type annotation.

lib/src/providers/connectivity_provider.dart:27:3

   ╷
27 │   _updateConnectivityStatus() async {
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/providers/connectivity_provider.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
connectivity_plus ^6.1.2 6.1.5 7.0.0
provider ^6.1.2 6.1.5+1 6.1.5+1
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
connectivity_plus_platform_interface - 2.0.1 2.0.1
dbus - 0.7.11 0.7.11
ffi - 2.1.4 2.1.4
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
nested - 1.0.0 1.0.0
nm - 0.5.0 0.5.0
petitparser - 7.0.1 7.0.1
plugin_platform_interface - 2.1.8 2.1.8
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
xml - 6.6.1 6.6.1

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

The constraint `^6.1.2` on connectivity_plus does not support the stable version `7.0.0`.

Try running dart pub upgrade --major-versions connectivity_plus 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:
156
likes
140
points
1.51k
downloads
screenshot

Publisher

verified publisherdart.nonstopio.com

Weekly Downloads

A new Flutter package which provides network-aware widgets.It allows Flutter apps provide feedback on your app when it's not connected to it, or when there's no connection.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

connectivity_plus, flutter, provider

More

Packages that depend on connectivity_wrapper