network_monitor_cp 0.0.6 network_monitor_cp: ^0.0.6 copied to clipboard
Connectivity_plus wrapper to monitor network status in rela time
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add network_monitor_cp
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
network_monitor_cp: ^0.0.6
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:network_monitor_cp/network/mixins/network_aware_mixin.dart';
import 'package:network_monitor_cp/network/network_aware_navigator_observer.dart';
import 'package:network_monitor_cp/network/network_monitor.dart';
import 'package:network_monitor_cp/network/network_state.dart';
import 'package:network_monitor_cp/network/network_utils.dart';
import 'package:network_monitor_cp/network/widget/network_aware_widget.dart';
import 'package:network_monitor_cp/network/widget/overlay_widget.dart';
import 'package:network_monitor_cp/network_monitor.dart';