I tried running the program created here on a Node.js server.
Node.js server installation
sudo npm install -g http-server
Build
flutter build web
It is created as follows.
$ tree build/web -L 2
build/web
├── assets
│ ├── AssetManifest.json
│ ├── FontManifest.json
│ ├── NOTICES
│ ├── fonts
│ └── packages
├── favicon.png
├── flutter_service_worker.js
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── index.html
├── main.dart.js
├── manifest.json
└── version.json
Run the server on buid/web.
$ http-server
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8080
http://192.168.1.8:8080
http://10.64.227.1:8080
Hit CTRL-C to stop the server
Result of accessing with a browser (The characters are garbled.)
Recommended Posts