Skip to content

A Flutter Widget that checks for the active internet connection status of the device and returns a widget depending on the internet status.

License

Notifications You must be signed in to change notification settings

akyunus/online_status_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

online_status_checker

A Widget that checks for the active internet connection status of the device and returns a widget depending on the internet status.

Getting Started

It designed to be an easy and quick solution for the applications which requires an active internet connection to be ready on the device.

When the device is offline OnlineStatusChecker will return a widget (by default a page that show a message) otherwise the child will be returned.

void main() async {
  runApp(MaterialApp(
      home: OnlineStatusChecker(
        child: HomePage(),
      ),
  ));
}

You can provide the offlineChild, offlineMessage and checkInterval values optionally.

About

A Flutter Widget that checks for the active internet connection status of the device and returns a widget depending on the internet status.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages