connectivity_status 0.1.1+1 connectivity_status: ^0.1.1+1 copied to clipboard
A flutter plugin to check the device connectivity.
connectivity_status POC #
A flutter plugin to check the device connectivity
Example #
cd flutter_video_launcher/example
flutter packages get
flutter run
Usage #
To use this plugin, add connectivity_status as a dependency in your pubspec.yaml file.
import 'package:connectivity_status/connectivity_status.dart';
//...
isConnected = await ConnectivityStatus.isConnected;
//...
iOS #
- ⚠️ this plugin is written in swift, so to use with in a Flutter/ObjC project, it seems to be needed to convert the project to "Current swift syntax" ( Edit/Convert/current swift syntax)
Android #
- ⚠️ needs the
ACCESS_NETWORK_STATE
permission
Todo #
- option to stream the status connection