Created
August 7, 2018 15:20
-
-
Save PoojaB26/076bc61c8688bfa515275a6e829cb25e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Widget getNoConnectionWidget(){ | |
return Column( | |
mainAxisSize: MainAxisSize.max, | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
SizedBox( | |
height: 60.0, | |
child: new Container( | |
decoration: new BoxDecoration( | |
image: new DecorationImage( | |
image: new AssetImage('assets/no-wifi.png'), | |
fit: BoxFit.contain, | |
), | |
), | |
), | |
), | |
new Text("No Internet Connection"), | |
new FlatButton( | |
color: Colors.red, | |
child: new Text("Retry", style: TextStyle(color: Colors.white),), | |
onPressed: () => asyncLoaderState.currentState.reloadState()) | |
], | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment