Errors can happen anytime in any application. Showing proper messages to your app users will significantly boost their experiences, but how can you do that? In this workshop, you are going beyond try/catch and will handle errors by creating your customer failure class as well as a widget and you will show proper messages based on the received messages.
-
Fork this repository
-
Install the Firebase CLI
-
Set the default project ID in
.firebaserc
:
{
"projects": {
"default": "handling-errors-gracefully"
}
}
-
Edit the files in
public/
to create your own step-by-step workshop. Themeta.yaml
to configures the metadata such as the project type (Dart or Flutter), number of steps, and title. -
Deploy to Firebase:
firebase deploy
- Load in DartPad using the following URL, replacing
handling-errors-gracefully
with your project ID:
https://dartpad.dev/workshops.html?webserver=https://handling-errors-gracefully.web.app