smart_connectivity_checker 0.1.0
smart_connectivity_checker: ^0.1.0 copied to clipboard
A Flutter package that monitors real internet connectivity (none/weak/good), shows customizable SnackBars, and provides connection quality callbacks.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add smart_connectivity_checkerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
smart_connectivity_checker: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:smart_connectivity_checker/smart_connectivity_checker.dart';