internet_availability 0.0.5 copy "internet_availability: ^0.0.5" to clipboard
internet_availability: ^0.0.5 copied to clipboard

A flutter package which check for internet availability and push a new page on top of the current route if internet is not available.

12
likes
130/ 160
pub points
52
downloads

We analyzed this package 2 days ago, and awarded it 130 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: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

10 out of 48 API elements (20.8 %) have documentation comments.

Some symbols that are missing documentation: go_router_refresh_stream, go_router_refresh_stream.RefreshStream, go_router_refresh_stream.RefreshStream.RefreshStream, internet_availability, internet_availability_config.

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:internet_availability/internet_availability.dart that imports:
  • package:internet_availability/service/service.dart that imports:
  • package:internet_availability/service/internet_availability_config.dart that imports:
  • package:internet_availability/presentation/cubit/internet_availability_cubit.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:internet_availability/internet_availability.dart that imports:
  • package:internet_availability/service/service.dart that imports:
  • package:internet_availability/service/internet_availability_config.dart that imports:
  • package:internet_availability/presentation/cubit/internet_availability_cubit.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:internet_availability/internet_availability.dart that imports:
  • package:internet_availability/service/service.dart that imports:
  • package:internet_availability/service/internet_availability_config.dart that imports:
  • package:internet_availability/presentation/cubit/internet_availability_cubit.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:internet_availability/internet_availability.dart that imports:
  • package:internet_availability/service/service.dart that imports:
  • package:internet_availability/service/internet_availability_config.dart that imports:
  • package:internet_availability/presentation/cubit/internet_availability_cubit.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

Package not compatible with runtime wasm

Because:

  • package:internet_availability/internet_availability.dart that imports:
  • package:internet_availability/service/service.dart that imports:
  • package:internet_availability/service/internet_availability_config.dart that imports:
  • package:internet_availability/presentation/cubit/internet_availability_cubit.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 imports:
  • package:nm/src/network_manager_client.dart that imports:
  • package:dbus/dbus.dart that imports:
  • package:dbus/src/dbus_value.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.

failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 5 issues. Showing the first 2:

WARNING: The parameter type of '==' operators should be non-nullable.

lib/presentation/cubit/internet_availability_cubit.freezed.dart:109:17

    ╷
109 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/presentation/cubit/internet_availability_cubit.freezed.dart

WARNING: The parameter type of '==' operators should be non-nullable.

lib/presentation/cubit/internet_availability_cubit.freezed.dart:215:17

    ╷
215 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/presentation/cubit/internet_availability_cubit.freezed.dart

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
connectivity_plus ^3.0.2 3.0.6 6.1.1
flutter flutter 0.0.0 0.0.0
flutter_bloc ^8.1.1 8.1.6 8.1.6
freezed_annotation ^2.2.0 2.4.4 2.4.4
go_router ^5.1.5 5.2.4 14.6.2
Transitive dependencies
Package Constraint Compatible Latest
args - 2.6.0 2.6.0
bloc - 8.1.4 8.1.4
characters - 1.3.0 1.4.0
collection - 1.19.0 1.19.1
connectivity_plus_platform_interface - 1.2.4 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
js - 0.6.7 0.7.1
json_annotation - 4.9.0 4.9.0
logging - 1.3.0 1.3.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nested - 1.0.0 1.0.0
nm - 0.5.0 0.5.0
petitparser - 6.0.2 6.0.2
plugin_platform_interface - 2.1.8 2.1.8
provider - 6.1.2 6.1.2
sky_engine - 0.0.0 0.0.0
vector_math - 2.1.4 2.1.4
xml - 6.5.0 6.5.0

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

The constraint `^3.0.2` on connectivity_plus does not support the stable version `4.0.0`.

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

The constraint `^5.1.5` on go_router does not support the stable version `6.0.0`.

Try running dart pub upgrade --major-versions go_router 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.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

12
likes
130
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package which check for internet availability and push a new page on top of the current route if internet is not available.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, flutter, flutter_bloc, freezed_annotation, go_router

More

Packages that depend on internet_availability