simple_connection_checker 0.1.0 copy "simple_connection_checker: ^0.1.0" to clipboard
simple_connection_checker: ^0.1.0 copied to clipboard

outdated

A simple package to check when the device is connected to internet.

Simple Connection Checker #

A simple package to check when the device is connected to internet.

Demo #

Instalation #

Include simple_connection_checker in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  simple_connection_checker: version

Usage #

To use this package, just import it into your file and call the static method isConnectedToInternet as follows:

import 'package:simple_connection_checker/simple_connection_checker.dart';

...

bool isConnected = await SimpleConnectionChecker.isConnectedToInternet();

...

Note: You can pass an optional parameter named lookUpAddress to pass an especific URL to make the lookup operation and check the internet connection. By default, this value is www.google.com. Do not use the protocol on the URL string passed (http:// or https://).

32
likes
0
pub points
92%
popularity

Publisher

verified publisherajomuch92.site

A simple package to check when the device is connected to internet.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on simple_connection_checker