Web Analytics Made Easy -
StatCounter
flutter-disable-web

The web support is by default enabled when creating a new flutter project but sometimes when we are only developing a mobile app or desktop app in flutter we may want to disable the web in the flutter project. In this article, we will see a step-by-step guide for flutter to disable web support.

Web folder

When we create a flutter project the web folder is also created in the parent folder, deleting a folder name ‘web’ disable web support.

Disable Web Support For All Operating System

In the terminal run the below command to disable web support for all operating systems

flutter config --no-enable-web

Disable Web Support for Specific Operating Systems

In the terminal, run the below command to disable web support for Windows

flutter config --no-enable-windows-desktop

In the terminal, run the below command to disable web support for macOS

flutter config --no-enable-macos-desktop

In the terminal, run the below command to disable web support for Linux

flutter config --no-enable-linux-desktop

Conclusion

We can follow the above-mentioned steps explained in this article to disable web support in the flutter project.

Avatar

By AmmarJaved

Ammar Javed possesses a unique combination of skills and expertise in web, desktop, and mobile app development, and content writing. Ammar Javed is a strategic thinker and has problem-solving abilities. Ammar Javed can work independently and in a team. Ammar Javed is dedicated to continuous learning and professional development.

One thought on “Effortlessly Disable Flutter Web Support”

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »