For building web data for deployment, you have to run the command:
flutter build web --web-renderer html --release
Build file location: <project>/build/web/
After running the command, Go to /build/web/
and copy all files from this folder and upload it to your domain. There are some files are hidden, you have to take them also like (.htaccess)
.
Info
You can not deploy admin and web at the same domain. In that case you can use subdomain for one. Like you can deploy your admin at https://admin.your_domain.com
and web at https://your_domain.com
. And in app code you have to use base url as https://admin.your_domain.com
.
Tip
Recommended tutorial is below 👇