network_popup 1.0.1+3
network_popup: ^1.0.1+3 copied to clipboard
A Flutter package that displays a customizable network connectivity popup across all screens when the device goes offline. Perfect for apps that require real-time network status updates.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:network_popup/network_popup.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return NetworkOverlay(
child: MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Network Popup Example')),
body: const Center(child: Text('Main Content')),
),
),
);
}
}