flutter_reachability 1.0.0 copy "flutter_reachability: ^1.0.0" to clipboard
flutter_reachability: ^1.0.0 copied to clipboard

This plugin allows Flutter applications to detect network changes. You can know the detailed mobile network types such as 2G, 3G, 4G, 5G. This plug-in is suitable for iOS and Android.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_reachability

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_reachability: ^1.0.0

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:flutter_reachability/flutter_reachability.dart';
2
likes
30
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

This plugin allows Flutter applications to detect network changes. You can know the detailed mobile network types such as 2G, 3G, 4G, 5G. This plug-in is suitable for iOS and Android.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_reachability

Packages that implement flutter_reachability