Remove Web Part from Existing Flutter Project

Viewed 2020

How can I remove the web component part of a Flutter project? I have a project that when it was created was automatically created with web support. Now I am 100% certain the app won't be used for web and I just want to remove support for it. Is there a command in the terminal to help me do that?

I tried checking through the other questions but the others were asking how to disable web support altogether. I just want to remove web support on one project.

Edit (Solved):

In order to fix this, I followed this link. The reason why I can't recreate the project easily is that the project has grown so much that it would be a big hassle to move it into another project. This happened after we updated all of our libraries to their latest versions respectively. FirestoreWeb caused our project to stop compiling but since we aren't using Flutter web and we don't plan to use it for this project, it wouldn't make sense for us to implement it.

1 Answers

I recommend you to create a new non-web project with the same name and move your lib, assets, and other settings from the older project folder.

Related