connection_info 1.0.0 copy "connection_info: ^1.0.0" to clipboard
connection_info: ^1.0.0 copied to clipboard

The library helps to check for internet conenctivity in all platforms supported by Flutter. It provides a stream to continuously listen for internet conenction state and a future to check for internet [...]

100/ 160
pub points
48
downloads

We analyzed this package 45 hours ago, and awarded it 100 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: BSD-3-Clause.

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

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

OUT: Documenting connection_info... Discovering libraries... Linking elements... Precaching local docs for 649274 elements... Initialized dartdoc with 805 libraries Generating docs for library connection_info.dart from package:connection_info/connection_info.dart... Generating docs for library models/connection_state.dart from package:connection_info/models/connection_state.dart... Documented 2 public libraries in 37.5 seconds ERR: warning: connection_info has no library level documentation comments from connection_info: (file:///tmp/pana_FFETEC/lib/connection_info.dart:1:1) warning: connection_info has no library level documentation comments from connection_info: (file:///tmp/pana_FFETEC/lib/models/connection_state.dart:1:1) error: file already written at "connection_info/index.html" for symbol connection_info: (file:///tmp/pana_FFETEC/lib/models/connection_state.dart:1:1) conflicting with file already generated by connection_info: (file:///tmp/pana_FFETEC/lib/connection_info.dart:1:1) Dartdoc generates a path and filename to write to for each symbol. 'connection_info' conflicts with another symbol in the generated path, and therefore can not be written out. Changing the name, library name, [16 more lines]

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Passed 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:connection_info/connection_info.dart that imports:
  • dart:io
Failed report section
Pass static analysis
30 / 50trigger folding of the section

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

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

lib/models/connection_state.freezed.dart:118:17

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

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

INFO: The part-of directive uses a library name.

lib/models/connection_state.freezed.dart:5:1

  ╷
5 │ part of connection_info;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/models/connection_state.freezed.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
freezed_annotation ^1.1.0 1.1.0 3.1.0
http ^0.13.4 0.13.6 1.6.0
json_annotation ^4.4.0 4.11.0 4.11.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.13.0 0.13.0
meta - 1.17.0 1.18.1
path - 1.9.1 1.9.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.2.0 2.2.0

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

The constraint `^1.1.0` on freezed_annotation does not support the stable version `2.0.0`.

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

The constraint `^0.13.4` on http does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions http 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.10, Flutter 3.41.0, Dart 3.11.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
100
points
48
downloads

Publisher

verified publisherpeuconomia.com

Weekly Downloads

The library helps to check for internet conenctivity in all platforms supported by Flutter. It provides a stream to continuously listen for internet conenction state and a future to check for internet connection.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, freezed_annotation, http, json_annotation

More

Packages that depend on connection_info