Remove Web Part from Existing Flutter Project
Asked Answered
I

1

6

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.

Instillation answered 23/11, 2020 at 9:5 Comment(2)
try to run this command flutter config --no-enable-webMordecai
And check if you use html/js related packages, like universal_html.Wageworker
M
-2

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.


This answer was posted as an edit to the question Remove Web Part from Existing Flutter Project by the OP kobowo under CC BY-SA 4.0.

Manhole answered 11/12, 2022 at 16:24 Comment(1)
Linking to walled off web content is not very cool.Tarim

© 2022 - 2024 — McMap. All rights reserved.