-
-
Save hitherejoe/74c6b46dbe651bcacc8ab60b50900e21 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
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