Why are there Android and iOS folders in the Flutter project?

avatar
14    6 months ago

Why are there Android and iOS folders in the Flutter project?

Answers { 1 }
avatar
6 months ago

There are three main folders in the Flutter project: lib, android and ios. ‘lib’ takes care of your Dart files. The Android and iOS folders exist to actually build an app on those respective platforms with the Dart files running on them. They also help you add permissions and platform-specific functionality to your project. When you run a Flutter project, it builds depending on which emulator or device it is running on, doing a Gradle or XCode build using the folders inside it. In short, those folders are entire apps which set the stage for the Flutter code to run.