connectivity_alert_widget 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 73

A package to simplify the task of showing users whether they are online or offline

Using #

The package has the ConnectivityAlertWidget, to use it only pass the widget to show when online and the widget to show when offline. The package abstract all of the hard work.

  onlineWidget: Icon(Icons.network_wifi, color:, size: 280),
  offlineWidget: Icon(Icons.signal_wifi_off, color:, size: 280),

You can choose anything to be your onlineWidget or offlineWidget but it's recomended to use something that easily inform the user about her current online status.


[1.0.0] - First release

The first release has the option to show the user if he's online or offline


example #

An example to use the connectivity widget

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  connectivity_alert_widget: ^1.0.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:connectivity_alert_widget/connectivity_alert_widget.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 16, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Format lib/connectivity_alert_widget.dart.

Run flutter format to format lib/connectivity_alert_widget.dart.

Maintenance suggestions

The package description is too short. (-2 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
connectivity ^0.4.5+1 0.4.6+2
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies