internet_connectivity_check 0.0.2 internet_connectivity_check: ^0.0.2 copied to clipboard
This package provides information about the state of internet connection. A permenant solution to Connectivity check problems arising from enabled wifi or mobile data with no internet Access.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add internet_connectivity_check
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
internet_connectivity_check: ^0.0.2
Alternatively, 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:internet_connectivity_check/internet_connectivity_check.dart';