how to run flutter app in chrome browser code example

Example 1: how to run flutter on google chrome

$ flutter channel master
$ flutter upgrade
$ flutter config --enable-web
#downloads sky_engine and sdk tools then shows devices list
$ flutter devices  
$ flutter create test_app
$ flutter run -d chrome

Example 2: how to enable flutter web

$ flutter channel beta
$ flutter upgrade
$ flutter config --enable-web

Example 3: running the build/web flutter

webdev serve

Example 4: flutter run on chrome

flutter run -d chrome

Tags:

Dart Example