20/01/2023
How to install Flutter on a Chromebook for web development
Flutter
Chromeos
It may seems natural but developing a web app in flutter in order to be run in Chrome is a bit tricky. If you want to develop and run a flutter app on ChromeOS, without installing a second Browser into you linux VM, you will need to follow this steps :
$ git clone https://github.com/flutter/flutter.git
$ export PATH="$PATH:pwd
/flutter/bin"
$ flutter precache
$ flutter doctor
$ CHROME_EXECUTABLE=/usr/bin/garcon-url-handler $ export CHROME_EXECUTABLE
$ flutter create testapp $ cd testapp
$ flutter run -d web-server --web-port 8000
Now you app should be running here : http://localhost:8000
Enjoy!