A package to simplify the task of showing users whether they are online or offline
The package has the ConnectivityAlertWidget, to use it only pass the widget to show when online and the widget to show when offline. The package abstract all of the hard work.
ConnectivityAlertWidget( onlineWidget: Icon(Icons.network_wifi, color: Colors.green, size: 280), offlineWidget: Icon(Icons.signal_wifi_off, color: Colors.red, size: 280), )
You can choose anything to be your onlineWidget or offlineWidget but it's recomended to use something that easily inform the user about her current online status.