connectivity_plus_ohos 0.0.3 connectivity_plus_ohos: ^0.0.3 copied to clipboard
This plugin allows Flutter apps to discover network connectivity types that can be used on OpenHarmony.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add connectivity_plus_ohos
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
connectivity_plus_ohos: ^0.0.3
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:connectivity_plus_ohos/connectivity_plus_ohos.dart';