-
-
Save Vanethos/3aa4db2f7546d8d65fc602fdc2293482 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 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