internet_popup 1.0.8+5 internet_popup: ^1.0.8+5 copied to clipboard
A package for popUp message when Internet connection is off. Write one line to initialize a popUp when internet connection is turned off or connected but no internet.
Example #
import 'package:flutter/material.dart';
import 'package:internet_popup/internet_popup.dart';
class Example extends StatefulWidget {
const Example({Key? key}) : super(key: key);
@override
_ExampleState createState() => _ExampleState();
}
class _ExampleState extends State<Example> {
@override
void initState() {
super.initState();
InternetPopup().initialize(context: context);
}
@override
Widget build(BuildContext context) {
return Container();
}
}