flutter_network_guard 0.1.2 copy "flutter_network_guard: ^0.1.2" to clipboard
flutter_network_guard: ^0.1.2 copied to clipboard

Network reliability toolkit for Flutter — real internet reachability, server health checks, retry with backoff, offline queue, caching and network-aware widgets. State-management agnostic.

130/ 160
pub points
140
downloads

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

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

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

391 out of 399 API elements (98.0 %) have documentation comments.

Some symbols that are missing documentation: flutter_network_guard.CancelToken.CancelToken.new, flutter_network_guard.InMemoryQueueStorage.InMemoryQueueStorage.new, flutter_network_guard.NetworkMetrics.NetworkMetrics.new, flutter_network_guard.QueueStorage.QueueStorage.new, flutter_network_guard.RequestDeduplicator.RequestDeduplicator.new.

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

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

Passed check 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:flutter_network_guard/flutter_network_guard.dart that imports:
  • package:flutter_network_guard/src/widgets/network_status_banner.dart that imports:
  • package:flutter_network_guard/src/core/network_guard.dart that imports:
  • package:flutter_network_guard/src/core/network_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_adapter.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:flutter_network_guard/flutter_network_guard.dart that imports:
  • package:flutter_network_guard/src/widgets/network_status_banner.dart that imports:
  • package:flutter_network_guard/src/core/network_guard.dart that imports:
  • package:flutter_network_guard/src/core/network_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_adapter.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:flutter_network_guard/flutter_network_guard.dart that imports:
  • package:flutter_network_guard/src/widgets/network_status_banner.dart that imports:
  • package:flutter_network_guard/src/core/network_guard.dart that imports:
  • package:flutter_network_guard/src/core/network_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_adapter.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:flutter_network_guard/flutter_network_guard.dart that imports:
  • package:flutter_network_guard/src/widgets/network_status_banner.dart that imports:
  • package:flutter_network_guard/src/core/network_guard.dart that imports:
  • package:flutter_network_guard/src/core/network_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_service.dart that imports:
  • package:flutter_network_guard/src/connectivity/connectivity_adapter.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.

WASM-ready: This package is compatible with runtime wasm. See https://dart.cn/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

Found 3 issues. Showing the first 2:

INFO: Library names are not necessary.

lib/flutter_network_guard.dart:19:9

   ╷
19 │ library flutter_network_guard;
   │         ^^^^^^^^^^^^^^^^^^^^^
   ╵

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

INFO: Use an initializing formal to assign a parameter to a field.

lib/src/quality/latency_monitor.dart:12:8

   ╷
12 │   }) : _thresholds = thresholds;
   │        ^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/quality/latency_monitor.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.0 6.1.5 7.3.1
dio ^5.7.0 5.11.1 5.11.1
http ^1.2.0 1.6.0 1.6.0
shared_preferences ^2.3.0 2.5.5 2.5.5
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
connectivity_plus_platform_interface - 2.1.0 2.1.0
dbus - 0.7.15 0.7.15
dio_web_adapter - 2.2.2 2.2.2
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
mime - 2.1.0 2.1.0
nm - 0.5.0 0.5.0
path - 1.9.1 1.9.1
path_provider_linux - 2.2.2 2.2.2
path_provider_platform_interface - 2.1.3 2.1.3
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.0.2 7.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
shared_preferences_android - 2.4.28 2.4.28
shared_preferences_foundation - 2.5.7 2.5.7
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.2 2.4.2
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.2 1.10.2
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_math - 2.4.2 2.4.2
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0
xml - 7.0.1 7.0.1

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

The constraint `^6.1.0` 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.19, Flutter 3.47.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
130
points
140
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Network reliability toolkit for Flutter — real internet reachability, server health checks, retry with backoff, offline queue, caching and network-aware widgets. State-management agnostic.

Repository (GitHub)
View/report issues
Contributing

Topics

#connectivity #network #retry #offline #cache

License

MIT (license)

Dependencies

connectivity_plus, dio, flutter, http, shared_preferences

More

Packages that depend on flutter_network_guard