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