Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Desktop Support Flutter

So, I wanted to try desktop development in Flutter. I went through all steps and successfully enabled desktop support for Flutter using flutter config --enable-linux-desktop in master channel.

Now everytime I create a new project in Flutter, it automatically builds necessary files for Linux Desktop.

I tried running flutter config --disable-linux-desktop, but there is no command like that. How do I disable desktop support?

PS : I don't want to switch to stable channel since I also want to make my apps for Web.

like image 417
Detained Developer Avatar asked Aug 22 '20 08:08

Detained Developer


People also ask

How do I enable desktop support in Flutter?

Adding desktop support to a pre-existing Flutter appflutter create . This will add the new desktop platform directory to your existing project so that you can build for it. If you want to add only specific desktop platforms, use the following command: flutter create --platforms=windows,macos,linux .

What is Flutter desktop support?

Flutter provides support for compiling a native Windows, macOS, or Linux desktop app. Flutter's desktop support also extends to plugins—you can install existing plugins that support the Windows, macOS, or Linux platforms, or you can create your own.

Is Flutter desktop stable?

Flutter for Windows, Linux, and macOS is now considered stable, so you can start to produce production apps this way.


1 Answers

You can disable enabled flags with adding no- prefix to the enable command. For disabling linux desktop flag you can simply run flutter config --no-enable-linux-desktop.

like image 171
Amir_P Avatar answered Sep 21 '22 01:09

Amir_P