The Tizen implementation of connectivity
.
This package is not an endorsed implementation of connectivity
. Therefore, you have to include connectivity_tizen
alongside connectivity
as dependencies in your pubspec.yaml
file.
dependencies:
connectivity: ^3.0.3
connectivity_tizen: ^2.0.1
Then you can import connectivity
in your Dart code:
import 'package:connectivity/connectivity.dart';
For detailed usage, see https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity#usage.
To get connectivity information using this plugin, add below lines under the <manifest>
section in your tizen-manifest.xml
file,
<privileges>
<privilege>http://tizen.org/privilege/network.get</privilege>
</privileges>