Deploy flutter on web
Please check the offical documentation:
Basically flutter web will create a build/web
folder, which contains all the files needed to deploy on web.
It contains an index.html file, which is the entry point of the web app.
As this is a web app it must be run as a single page application, so the server must be configured to redirect all the requests to the index.html file.
Deploy your flutter web app on firebase
Install firebase tools
npm install -g firebase-tools
Login to firebase
firebase login
Init firebase
firebase init
Firebase will ask you which features you want to use, select hosting. It will also ask if you want to host this app as a single page application, select yes.
Deploy
firebase deploy --only hosting