Skip to content

Instantly share code, notes, and snippets.

@PoojaB26
Created August 7, 2018 15:20
Show Gist options
  • Save PoojaB26/076bc61c8688bfa515275a6e829cb25e to your computer and use it in GitHub Desktop.
Save PoojaB26/076bc61c8688bfa515275a6e829cb25e to your computer and use it in GitHub Desktop.
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