
When you get access to the " index.html", you are loading the whole application. In fact, this corresponds to the Javascript transposition of your Dart code, and some other libraries. The " index.html" page automatically loads some assets as well as the " " file that corresponds to the whole application. When you run your Flutter Web Application, once the basic web server is activated, the " index.html" page is automatically invoked, from the corresponding " web" folder.

If you run in release mode, the web folder is "/build/web" If you run the Flutter Web App in debug mode, the web folder is "/web" Very little configuration/customization can be added to the instance of that web server. Indeed, when you run a Flutter Web Application, you " simply" launch a basic web server that listens to a certain " IP_address:port" and serves the files located in the " web" folder.

This statement is very important and very often forgotten. " Flutter Web Application does NOT run behind a fully configurable Web Server" Reminder - Flutter Web application does NOT run behind a fully configurable Web Server I also tried to play a bit with the Service Workers, but could not find any solution that way neither.īefore giving you the solution I have implemented, I would like to share with you some important pieces of information. Having a look at the Flutter Roadmap 2020, Flutter Web should be officially released this year with a consequence that this article might not be relevant quite soon, as the problem it addresses might be solved in the coming months. This article has been written in February 2020 and is based on version 1.14.6 of Flutter, running of Channel Beta. This PR is still under validation but keep an eye on it. Side note on May 05, 2020Īs I said when I posted this article, things are evolving quite fast in the Flutter world and my good friend Simon Lightfood issued the following Pull Request, which might give a Standard Solution to the problem I describe in this article. This article explains the solution I implemented. I searched a lot the Internet but never found any good solution. the direct input of the URL from the Browser.

When I had to deploy my first Flutter Web application in production, I had to handle all the usual features, logically related to Web Server and especially:
