Skip to content

Instantly share code, notes, and snippets.

@Vanethos
Created January 13, 2020 08:19
Show Gist options
  • Save Vanethos/3aa4db2f7546d8d65fc602fdc2293482 to your computer and use it in GitHub Desktop.
Save Vanethos/3aa4db2f7546d8d65fc602fdc2293482 to your computer and use it in GitHub Desktop.
class ErrorWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("Oh no! An error has occurred with the app! Please send the details over to our team"),
MaterialButton(child: Text("Send Report"), onPressed: () => navigatorKey.currentState?.pop(), color: Colors.red,)
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment