In order to deploy your web app to the Firebase hosting platform, please take the following steps:
-
Open a Terminal window and move it to your project folder.
-
Type the following command:
flutter build web --web-renderer html
- Open your browser and go to the Firebase console at the address https://console.firebase.google.com.
- Create a new Firebase project (you can also use an existing one).
For a refresher on Firebase projects, see the Configuring a Firebase app recipe in Chapter 12, Using Firebase.
- Download the Firebase CLI. You will find the link for your OS at https://firebase.google.com/docs/cli.
- In your Terminal, type the following command:
firebase login
- From the browser window that asks for your login, confirm your credentials and allow the required permissions. At the end of the process, note the success message in your browser:

- In your terminal, note the success message: ✔ Success! Logged in as [yourusername...