observe_internet_connectivity 1.0.1 observe_internet_connectivity: ^1.0.1 copied to clipboard
A flutter package that helps to observe internet connection via a customizable observing strategy.
import 'package:example/internet_connectivity_listener_example.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData.dark(),
debugShowCheckedModeBanner: false,
home: const ShowInternetConnectionBanner(),
);
}
}