How To Create A New Flutter Project In Android Studio

In this Flutter tutorial, I will teach you how to create a new Flutter project using Android Studio like professionals.

Create-A-New-Flutter-Project-In-Android-Studio

For developing Flutter applications I highly recommend using Android Studio because of its following features.

  • The robust and flexible build system
  • User-friendly interface
  • Designed for teams
  • Optimized for all Android devices
  • Firebase and Cloud integration
  • Layout Editor
  • Vector Asset Studio

No doubt that these features are awesome and really great when you are developing your application.

In this tutorial, I will teach you how to create a new Flutter project using Android Studio as professionals do.

Prerequisites For Flutter Project In Android Studio:

  1. Android Studio
  2. Flutter SDK

To create a new Flutter project in Android Studio follows the below steps.

  • Open the Android Studio and locate preferences ->plugin.
  • Search for Flutter and Dart plugins and install them.
  • Now restart your Android Studio.
Recommended:  How To Create A New Flutter Project In Visual Studio Code

After you, Android Studio relaunches you will an option to create a new Flutter project. Click on this option.

New-Flutter-project-in-Android-Studio

Now select Flutter Application and click the next button.

New-Flutter-Application

Now write the project name and verify the Flutter SDK path. You should choose where you want your Flutter project to be saved.

Give-a-name-to-your-Flutter-application

The last step is to give a company domain name to your project and click Finish.

company-domain-name-is-android-studio.

Congratulations! You have successfully created your new Flutter project in Android Studio without any errors.

You can test your default Flutter app by running the main.dart file using the physical device or Android Emulator.

Note: When you create a new Flutter application your IDE requires you to enter a company domain name in reverse order. Reverse order use to maintain the uniqueness of your app on the Google App Store. This company domain name can’t change once it is set.

Run The Flutter App In Android Studio

To run your newly created Flutter application in Android Studio you should locate the toolbar located at the top of the Android Studio.

Recommended:  Flutter Introduction A Complete Guide To The Basics

Android-Studio-Toolbar-for-Flutter-execution

Now you have to select your device in the Target selector to run your code.

If you have seen no device in the Target selector then go to Tools> Android > AVD Manager and create one there.

To see a detailed tutorial on how to setup up your Flutter check out this how to set up Flutter Tutorial.

Now click the run icon on the toolbar to start your Flutter application. Your app will look like this

New-flutter-application

Hot Reload In Flutter Flutter

Hot Reload is a great feature of Flutter. It makes the development cycle much faster. With Hot Reload if you make any changes in your code you can see the results almost instantly.

Let’s have a look at Hot Reload.

Change the piece of string

with this one

Recommended:  Flutter Framework On Windows OS Complete Tutorial

now save your code and you can see the changes in not time on your simulator or device.

Congratulations! Now you are ready to create and run your Flutter Application in the Android Studio without any error.

Jack Sparrow

Hay I Am Admin Of This Website. I Am Very Passionate About Computers And Technology. This Website Is The Result Of My Passion. I Love To Eliminate The Barriers That Come In Seeking Education. This Website Is The Free Source Of Learning About New Technology And Up To Date Knowledge.

This Post Has 2 Comments

  1. Junaid

    that’s an awesome article about creating Flutter project in Andriod studio.

  2. jawaad Ali Shah

    one of the best article on this topic

Leave a Reply