The Beginning — Flutter
Steps to create a flutter project in Android Studio
Installing Flutter SDK
- Open Android Studio and click Start a new Flutter project.
2. Select Flutter Application and click Next.
3. To install Flutter SDK, click Install SDK…
4. Choose a directory where you want to install Flutter SDK and click OK. SDK will start installing.
5. After successful installation, click Next
6. Set the package name and click Finish. If you want to include Kotlin support and Swift code, you can select the checkboxes before clicking Finish. After clicking Finish, the project will be created.
7. If you are familiar with Android development, you will find the Android project structure in theAndroid folder and the same for ios. To run the project in Android, we also need to set module SDK. To do that, just open MainActivity.java from the Android source folder. Android studio asks you to set Module SDK, just click Setup SDK and select the module SDK and click OK.
8. And to run the project on an Android phone, make sure the developer option and USB debugging are enabled in the Android phone and connect to the PC. After the connection, in the top right corner, no devices will turn into your device name. Click the Run button.
That’s all
You have created and built a flutter application in Android Studio.
Happy Coding
Let’s learn about widgets in the next posts. Happy Coding.