Ubuntu で Flutter を使う (その2)
こちらで作成したプログラムを、Node.js のサーバーで動かしてみました。
Ubuntu で Flutter を使う
Node.js のサーバーのインストール
sudo npm install -g http-server
ビルドをする
flutter build web
次のように作成されます。
$ 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
buid/web でサーバーを実行します。
$ cd build/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
Author And Source
この問題について(Ubuntu で Flutter を使う (その2)), 我々は、より多くの情報をここで見つけました https://qiita.com/ekzemplaro/items/02220dca45636ea1e639著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .