Search packages, repositories and app categories

internet_popup cover
Package detailsv2.0.2

internet_popup

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.

30-day downloads
37
Likes
53
Pub points
160

Install package

flutter pub add internet_popup

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The internet_popup package provides a simple way to display pop-up messages when the device's internet connection is lost or restored. It monitors network status in real time and triggers a customizable popup notification based on connectivity changes. Ideal for apps that require user awareness of network availability, it ensures users are informed promptly about connection states without requiring manual checks. The package integrates seamlessly with Flutter applications and supports both Android and iOS platforms.

Use cases

  • Display alerts when internet is disconnected
  • Notify users upon reconnection
  • Improve user experience during offline periods
  • Provide feedback for network-dependent operations
  • Enable automatic network status monitoring

Key features

  • Real-time internet status detection
  • Customizable popup messages
  • Easy integration with Flutter
  • Supports both Android and iOS
  • Minimal setup required

Suitable for

  • Mobile apps needing network awareness
  • User-facing apps with online features
  • Applications requiring offline mode notifications
  • Developers seeking lightweight connectivity solutions
  • Projects with minimal dependency overhead

Considerations

  • Requires internet permission in manifest
  • Limited to basic popup notifications
  • No advanced customization options
  • Does not handle proxy or Wi-Fi specific issues
  • May require additional styling for UI consistency

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

internet_popup

A package that shows a pop up alert when the internet connection is lost

GitHub License

App Screenshot

Features

  • auto popUp
  • option to fix or pop the warning
  • one line implementation
  • callBack function to do something after internet connectivity status change

Usage

initialize InternetPopup class and add context inside initState() funtion of the top of your widget tree.

 InternetPopup().initialize(context: context);

when the widget is popped from widget tree, initialize it again on next page.

If you want your own widget to popUp, use

 InternetPopup().initializeCustomWidget(context: context, widget: /*** your custom widget ***/);

You can write custom message title and description using customMessage and customDescription parameter inside initialize.

use onTapPop parameter to decide if the box can be removed before internet connection is back online.

You can use checkInternet function to get a Future value to check connectivity manually before some task.

 bool isConnected = await InternetPopup().checkInternet();

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.