no_internet_check 0.0.1 no_internet_check: ^0.0.1 copied to clipboard
Automatically show no internet screen on top of your current screen and when there is internet it automatically pop the no inter screen.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add no_internet_check
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
no_internet_check: ^0.0.1
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:no_internet_check/no_internet_check.dart';