Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter new web project not showing in Visual Studio command palette

I have installed Visual Studio Code, Dart and Flutter correctly according to the tutorial step shown in docs. I have checked it 100 times but nothing is wrong, unable to find issue.

Expected result in Flutter:

New web project must be visible in in Visual Studio Code.

like image 866
Manish Patel Avatar asked Jun 10 '19 07:06

Manish Patel


Video Answer


2 Answers

I was not able to get 'Flutter: New Web Project", but following https://flutter.dev/docs/get-started/web from the Flutter Docs got me running the app on the web. Hope it helps. Below are the commands that I entered in Visual Studio Code's terminal

$ flutter channel dev
$ flutter upgrade
$ flutter config --enable-web
$ mkdir <new_project_directory_name>
$ cd <into new_project_directory>
$ flutter create .
$ flutter run -d chrome
like image 139
ALotLikeEs Avatar answered Oct 11 '22 22:10

ALotLikeEs


Flutter: New Web Project was removed from the VS Code extension. The excuse was this was always supposed to be temporary and it broke with the latest release of 'Stagehand'. But removing it makes it harder to create a new web project. I followed the directions given in answer by @ALotLikeEss.

like image 37
David Ching Avatar answered Oct 12 '22 00:10

David Ching