v1.0.8+5internet_popup
인터넷 연결이 꺼졌을 때 팝업 메시지를 표시하는 패키지입니다. 인터넷 연결이 끊어졌거나 연결되어 있지만 인터넷에 접속되지 않은 경우 팝업을 초기화하기 위해 한 줄을 작성하세요.
인터넷 연결이 없을 때 팝업을 생성하는 패키지
{"sdk":"flutter"}^3.1.1^1.24.9^3.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A package that shows a pop up alert when the internet connection is lost
App Screenshot
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();