user7720975
user7720975

Reputation:

Can I delete the android and ios folders in Flutter?

I am writing for desktop, so windows, linux, and mac directories are all I need. But I am not sure if I should delete the android and ios folders or not.

Upvotes: 19

Views: 12796

Answers (3)

Bruno Henrique Morais
Bruno Henrique Morais

Reputation: 21

I'm use the command line rm -r nameFolder

rm -r linux

Upvotes: 1

Abdullah Alamodi
Abdullah Alamodi

Reputation: 339

You can use the command line to delete or create folders of flutter env.

For example, to delete android:

rm -r android

and if you want to deploy for android in the future you can use:

flutter create --platforms=android .

so feel free to delete or create any env.

Upvotes: 7

user13527194
user13527194

Reputation:

Yes, because unless you are compiling your code for this platform, its contents are useless to you, as they are only a boilerplate code for you.

Example, if you enable web support for Flutter, but decide not to compile for web, then removing the folder does literally nothing to your code if you're (for example) developing for Android and iOS only.

Upvotes: 12

Related Questions