Creating a new screen

How do I add a new screen?

in the project, there is a blank screen at lib/magaza_ui/screens/blank.dart already configured for you to use.

  • Make a copy of the blank.dart file. rename it to something unique

  • in the code, rename the BlankPage class into the name of your choice

In your `lib/main.dart`, import the new file and create a new route for the newly created screen. See examples below:

Last updated