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 [...]

2
likes
80/ 140
pub points
0%
popularity

We analyzed this package 43 hours ago, and awarded it 80 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

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.

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: connection_info,
    • contains a version property, and,
    • does not contain a publish_to property.

Unable to access git repository: Could not accept branch name: CI-1.

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.

failed
Provide documentation
0 / 20trigger folding of the section

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 594970 elements... Initialized dartdoc with 732 libraries Generating docs for library models/connection_state.dart from package:connection_info/models/connection_state.dart... Generating docs for library connection_info.dart from package:connection_info/connection_info.dart... Documented 2 public libraries in 74.7 seconds ERR: warning: connection_info has no library level documentation comments from connection_info: (file:///tmp/pana_XKBEZN/lib/models/connection_state.dart:1:9) warning: connection_info has no library level documentation comments from connection_info: (file:///tmp/pana_XKBEZN/lib/connection_info.dart:1:9) error: file already written at "connection_info/connection_info-library.html" for symbol connection_info: (file:///tmp/pana_XKBEZN/lib/connection_info.dart:1:9) conflicting with file already generated by connection_info: (file:///tmp/pana_XKBEZN/lib/models/connection_state.dart:1:9) 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, [13 more lines]

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

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

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
Support up-to-date dependencies
10 / 20trigger folding of the section

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

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
freezed_annotation ^1.1.0 1.1.0 2.4.1
http ^0.13.4 0.13.6 1.2.1
json_annotation ^4.4.0 4.9.0 4.9.0
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
http_parser - 4.0.2 4.0.2
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
path - 1.9.0 1.9.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4

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.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Flutter 3.19.6, Dart 3.3.4.

Check the analysis log for details.

2
likes
80
pub points
0%
popularity

Publisher

verified publisherpeuconomia.com

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, freezed_annotation, http, json_annotation

More

Packages that depend on connection_info