Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created December 17, 2018 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/74c6b46dbe651bcacc8ab60b50900e21 to your computer and use it in GitHub Desktop.
Save hitherejoe/74c6b46dbe651bcacc8ab60b50900e21 to your computer and use it in GitHub Desktop.
class ContentErrorWidget extends StatelessWidget {
final onTryAgain;
ContentErrorWidget({this.onTryAgain});
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Padding(
padding: EdgeInsets.all(32.0),
child: Text(
Strings.label_error_loading_content,
textAlign: TextAlign.center,
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w400),
),
),
PlatformButton(
onPressed: this.onTryAgain,
)
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment