How To Create A New Flutter Project

Flutter category image

This short article shows how to create a new Flutter project in 3 different ways, so you can start working on your app.

I will show you three ways how to create a new Flutter project. You can do it with the IDEs Visual Studio Code or Android Studio or by using the command-line tool from the Flutter SDK. You need to have the Flutter SDK installed, otherwise non of these tips will work. To install the Flutter SDK, see the Flutter homepage.

Visual Studio Code

  • Go to View โ–ถ Command Paletteโ€ฆ
Open command palette in VSCode
Open command palette in VSCode
  • Enter or select Flutter: New Project
Choose command in command palette
Choose command in command palette
  • Select the project template Application.
Select template for new Flutter project
Select template for new Flutter project
  • Follow the guide until the end

Your project will be created at the desired location and Visual Studio Code will open it immediately.

Get Free Daily Flutter Content!

Small daily Flutter portions delivered right in your inbox. A title, an abstract, a link, and you decide if you want to dive in!

Android Studio

  • Go to File โ–ถ New โ–ถ New Flutter Projectโ€ฆ
Create new Flutter project in Android Studio
Create new Flutter project in Android Studio
  • Make sure the Flutter SDK path is found and correct.
Make sure Flutter SDK install directory is found in Android Studio
Make sure Flutter SDK install directory is found in Android Studio
  • Define additional project settings and click Finish.
Enter project details for the new Flutter project in Android Studio
Enter project details for the new Flutter project in Android Studio

Your project will be created at the desired location and Android Studio will open it immediately.

Command-line

  • Open any command-line tool (like CMD on Windows)
  • Run the command flutter create testproject. It will create a folder called testproject at the current location and put all the app code inside this folder.
Create a new Flutter project with the Flutter command-line tool
Create a new Flutter project with the Flutter command-line tool
  • To customize your new project, see flutter create --help. There are many options to set for your project. However, the default settings should be fine for most of the cases.

Conclusion

With this guide, you should be able to create new Flutter projects and start developing your apps. For more information about packages go to the official Flutter documentation.

Related articles