ac_connectivity 0.1.3 copy "ac_connectivity: ^0.1.3" to clipboard
ac_connectivity: ^0.1.3 copied to clipboard

Stateful connectivity_plus extended with Internet connectivity

3
likes
110/ 160
pub points
59%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

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

12 out of 20 API elements (60.0 %) have documentation comments.

Some symbols that are missing documentation: ac_connectivity, ac_connectivity.Connectivity, ac_connectivity.Connectivity.Connectivity, ac_connectivity.Connectivity.defaultInetEndpoints, ac_connectivity.Connectivity.lastConnectivityPlusState.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

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:ac_connectivity/ac_connectivity.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:ac_connectivity/ac_connectivity.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:ac_connectivity/ac_connectivity.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:ac_connectivity/ac_connectivity.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.

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
Pass static analysis
0 / 50trigger folding of the section

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

Found 5 issues. Showing the first 2:

ERROR: The argument type 'void Function(ConnectivityPlusState)' can't be assigned to the parameter type 'void Function(List

lib/src/connectivity.dart:37:17

   ╷
37 │         .listen(_handleConnectivityPlusEvent);
   │                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

ERROR: The argument type 'List

lib/src/connectivity.dart:107:36

    ╷
107 │       _handleConnectivityPlusEvent(state);
    │                                    ^^^^^
    ╵

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

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
ac_dart_essentials ^0.2.1 0.2.2 0.2.2
ac_flutter_essentials ^0.1.0 0.1.3 0.1.3
ac_inet_connectivity_checker ^0.1.4 0.1.6 0.1.6
async ^2.10.0 2.12.0 2.12.0
connectivity_plus any 6.1.0 6.1.0
flutter flutter 0.0.0 0.0.0
Transitive dependencies
Package Constraint Compatible Latest
args - 2.6.0 2.6.0
characters - 1.3.0 1.3.1
collection - 1.18.0 1.19.1
connectivity_plus_platform_interface - 2.0.1 2.0.1
dbus - 0.7.10 0.7.10
ffi - 2.1.3 2.1.3
flutter_web_plugins - 0.0.0 0.0.0
freezed_annotation - 2.4.4 2.4.4
json_annotation - 4.9.0 4.9.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nm - 0.5.0 0.5.0
petitparser - 6.0.2 6.0.2
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.99 0.0.99
vector_math - 2.1.4 2.1.4
web - 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.

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.