FLUTTER ECOSYSTEM

mehedidew/internet_popup

インターネット接続がないときにポップアップを表示するパッケージ

internet_popup のプロジェクト画像
Stars
6
Forks
2
最終プッシュ(UTC)
2026/09/10
プロジェクト状態
公開中
DropDew GitHub avatar
GITHUB User

DropDew ↗

Flutter/ Android Developer

Dhaka
言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 4 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

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();