FLUTTER ECOSYSTEM

mehedidew/internet_popup

인터넷 연결이 없을 때 팝업을 생성하는 패키지

internet_popup 프로젝트 이미지
Stars
6
Forks
2
최근 푸시(UTC)
2026. 9. 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();