connectivity_watcher 3.0.3
connectivity_watcher: ^3.0.3 copied to clipboard
A Flutter package for lightning-fast internet connectivity checks—with subsecond response times, even on mobile networks! Includes support for custom UI, so you can seamlessly show connection status your way.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add connectivity_watcherWith Flutter:
$ flutter pub add connectivity_watcherThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
connectivity_watcher: ^3.0.3Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:connectivity_watcher/connectivity_watcher.dart';