创建不依赖Web的Flutter项目 [英] Create a flutter project without a web dependence

查看:46
本文介绍了创建不依赖Web的Flutter项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用VS在Flutter中创建一个新项目,但是我希望这个项目不依赖Web只是移动应用程序的依赖,但是每次创建一个项目时,它都会赋予我Web而不是移动应用程序的依赖例如,这就是我得到的:

I want to create a new project in flutter using VS, but I want this project without the web dependence just a mobile app dependence but each time I create a project it gives me the dependence of the web, not a mobile app For Example, this what I get:

这就是我想要的

推荐答案

以与启用Flutter Web支持相同的方式,将其禁用.

In the same way you enabled flutter web support, disable it.

flutter config --no-enable-web

这删除了Web支持,因此将来创建的项目将不会生成Web文件夹.您可能需要重新启动所有打开的编辑器才能进行更改.

This removes web support so that future created projects will not generate a web folder. You may need to restart any open editors for the changes to take place.

这篇关于创建不依赖Web的Flutter项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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