Now that our web app is complete, you might wonder how to publish it to a web server. At this time, browsers only support HTML, CSS, and JavaScript, so you cannot just publish your code to a web server and expect it to run on a browser as we did during the debug process.
Fortunately, the support for building web apps in Flutter includes a tool to transform your Flutter code into JavaScript. From the command-line interface on your development machine, just run the following command:
flutter build web
Running this command will create the \build\web folder in your app directory. If you open it, you should see an index.html file, which is the home page of your web app.
When you build a web release version, the framework will minify and perform obfuscation on your files. For more information about the process, see https://flutter.dev/docs/deployment...