Flutter新的Web项目未显示在Visual Studio命令面板中 [英] Flutter new web project not showing in Visual Studio command palette

查看:182
本文介绍了Flutter新的Web项目未显示在Visual Studio命令面板中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照文档中显示的教程步骤正确安装了Visual Studio Code,Dart和Flutter。我已经检查了100次,但没有错,找不到问题。

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.

在Flutter中预期的结果:

Expected result in Flutter:

新的Web项目必须在Visual Studio代码中可见。

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

推荐答案

我无法获得 Flutter:新的Web项目 ,但遵循 https://flutter.dev/docs/get-started/web Flutter Docs提供的帮助使我可以在Web上运行该应用程序,希望对您有所帮助。以下是我在Visual Studio Code终端中输入的命令

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

这篇关于Flutter新的Web项目未显示在Visual Studio命令面板中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆