0 purchases
connectivity handler
Connectivity_Handler
Features #
You can easily check network connectivity without any hassle.Just pass your widget in dart ConnectivityHandler()
Installation #
Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
connectivity_handler: ^0.0.4
copied to clipboard
Usage #
TODO: Include short and useful examples for package users. Add longer examples
to /example folder.
class ExampleScreen extends StatelessWidget{
const ExampleScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
appBar: AppBar(title: const Text("Example Screen")),
body: ConnectivityHandler(const Text("Use your own widget")),
),
);
}
}
copied to clipboard
Import #
import 'package:connectivity_handler/connectivity_handler.dart';
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.