Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a flutter project without a web dependence

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:

enter image description here

This what I want

enter image description here

like image 738
Nuha Avatar asked Jul 13 '26 14:07

Nuha


2 Answers

You can generate a flutter app for only mobile platforms with flutter create tool by specifying platforms.

flutter create <app_name> --platforms=android,ios
like image 117
lordvidex Avatar answered Jul 15 '26 05:07

lordvidex


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

flutter config --no-enable-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.

like image 41
Christopher Moore Avatar answered Jul 15 '26 06:07

Christopher Moore