Create a new Flutter app
Learn how to bootstrap a new Flutter application from your command-line, different editors, and even in the cloud.
This page provides step-by-step instructions on how to bootstrap a new Flutter app in your preferred development environment.
To create a new Flutter app, first set up Flutter, then choose your preferred environment and follow the corresponding instructions.
Create a new Flutter app without leaving VS Code.
Create a new Flutter app without leaving Android Studio.
Create a new Flutter app without leaving your IntelliJ-based IDE.
For agentic coding support, create a new Flutter app in Antigravity.
For maximum flexibility, create a new Flutter app from the command line.
Create a new Flutter module to embed in an existing app.
VS Code
#To create a Flutter app with VS Code and other Code OSS-based editors, you first need to install Flutter and set up VS Code for Flutter development. Then follow these steps:
Launch VS Code
Open VS Code or your preferred Code OSS-based editor.
-
Open the command palette
Go to View > Command Palette or press Cmd/Ctrl + Shift + P.
-
Find the Flutter commands
In the command palette, start typing
flutter:. VS Code should surface commands from the Flutter plugin. -
Run the new project command
Select the Flutter: New Project command. Your OS or VS Code might ask for access to your documents, agree to continue to the next step.
-
Choose a template
VS Code should prompt you with Which Flutter template?. Depending on what type of Flutter project you want to create, choose the corresponding template. For a new Flutter app, choose Application.
-
Select a project location
A file dialog should appear. Select or create the parent directory where you want the project to be created. Don't create the project folder itself, the Flutter tool does so. To confirm your selection, click Select a folder to create the project in.
-
Enter a project name
VS Code should prompt you to enter a name for your new project. Enter a name for your app that follows the
lowercase_with_underscoresnaming convention, following the Effective Dart guidelines. To confirm your selection, press Enter. -
Wait for project initialization
Based on the information you entered, VS Code uses
flutter createto bootstrap your app. Progress is often surfaced as a notification in the bottom right and can also be accessed from the Output panel. -
Run your app
Your new app should now be created and open in VS Code. To try your new app, follow the steps to run and debug in VS Code.
You've successfully created a new Flutter app in VS Code! If you need more help with developing Flutter in VS Code, check out the VS Code for Flutter reference.
Android Studio
#To create a Flutter app with Android Studio, you first need to install Flutter and set up Android Studio for Flutter development. Then follow these steps:
-
Launch Android Studio
Open Android Studio with the Dart and Flutter plugins installed.
-
Begin project creation
If you're on the IDE welcome dialog that says Welcome to Android Studio, find and click the New Flutter Project button in the center.
If you already have a project open, either close it or go to File > New > New Flutter Project....
-
Choose a project type
In the New Project dialog, under Generators in the left panel, select Flutter.
-
Verify Flutter SDK setup
At the top of the right panel, ensure the Flutter SDK path value matches the location of the Flutter SDK you'd like to develop with. If not, update it by choosing or specifying the correct one.
-
Configure your project
Click Next to continue to project configuration. Multiple configuration options should appear.
In the Project name field, enter a name for your app that follows the
lowercase_with_underscoresnaming convention, following the Effective Dart guidelines.If you're not creating an application, select another template from the Project type dropdown.
If you're creating an app that you might publish in the future, set the Organization field to your company domain.
The other fields can be kept as is or configured according to your project's needs.
-
Finish project creation
Once you've completed the configuration of your project, click Create to begin project initialization.
-
Wait for workspace initialization
Android Studio will now initialize your workspace, bootstrap your project file structure, and retrieve your app's dependencies. This might take a while and can be tracked at the bottom of the window.
-
Run your app
Your new app should now be created and open in Android Studio. To try your new app, follow the steps to run and debug in Android Studio.
You've successfully created a new Flutter app in Android Studio! If you need more help with developing Flutter in Android Studio, check out the Android Studio for Flutter reference.
IntelliJ
#To create a Flutter app with IntelliJ or other JetBrains IDEs, you first need to install Flutter and set up IntelliJ for Flutter development. Then follow these steps:
-
Launch IntelliJ
Open IntelliJ IDEA or your preferred IntelliJ-based IDE by JetBrains that has the Dart and Flutter plugins installed.
-
Begin project creation
If you're on the IDE welcome dialog that says Welcome to IntelliJ IDEA, find and click the New Project button in the upper right corner.
If you already have a project open, either close it or go to File > New > New Project....
-
Choose a project type
In the New Project dialog, under Generators in the left panel, select Flutter.
-
Verify Flutter SDK setup
At the top of the right panel, ensure the Flutter SDK path value matches the location of the Flutter SDK you'd like to develop with. If not, update it by choosing or specifying the correct one.
-
Configure your project
Click Next to continue to project configuration. Multiple configuration options should appear.
In the Project name field, enter a name for your app that follows the
lowercase_with_underscoresnaming convention, following the Effective Dart guidelines.If you're not creating an application, select another template from the Project type dropdown.
If you're creating an app that you might publish in the future, set the Organization field [to your company domain][ij-set-org].
The other fields can be kept as is or configured according to your project's needs.
-
Finish project creation
Once you've completed the configuration of your project, click Create to begin project initialization.
-
Wait for workspace initialization
IntelliJ will now initialize your workspace, bootstrap your project file structure, and retrieve your app's dependencies. This might take a while and can be tracked at the bottom of the window.
-
Run your app
Your new app should now be created and open in IntelliJ. To try your new app, follow the steps to run and debug in IntelliJ.
You've successfully created a new Flutter app in IntelliJ! If you need more help with developing Flutter in IntelliJ, check out the IntelliJ for Flutter reference.
Antigravity
#To create a Flutter app with Antigravity, you first need to install and set up Antigravity as described on the Antigravity tools page. Then follow these steps:
-
Open Antigravity and create a Workspace
Launch the Antigravity IDE and create a new, sandboxed workspace for your project using the Agent Manager.
-
Use the Agent Manager
Switch to the Agent Manager interface, which is where you interact with the AI agents by using chat.
-
Write detailed prompts
Communicate your app requirements to the agent using detailed, structured prompts, much like providing instructions to a junior developer. For example, "Create a new Flutter project named my_app. Add a home screen with a list of items and a floating action button".
-
Review and approve the plan
The AI agent will generate a detailed implementation plan, including folder structure, dependencies, and steps. You can review this plan and click Proceed or provide feedback to make changes.
-
Authorize actions
The agent will ask for permission before running terminal commands (like
flutter pub addorflutter create) or accessing the browser/emulator. Review and Accept these actions to allow the agent to build the app. -
Iterate and refine
Once the initial app is generated, you can provide further prompts to add features, refine the UI, implement logic, or add persistence (for example, "Add local storage using shared_preferences").
-
Test the app
Use the integrated emulator or connect a physical device to test the app. The agent can even run tests and provide video walkthroughs of the functionality.
-
Verify code in the editor
You can switch to the standard code editor view at any time to inspect the generated Dart and Flutter files, ensuring the code quality meets your standards.
Terminal
#To create a Flutter app in your terminal, you first need to install and set up Flutter. Then follow these steps:
-
Open your terminal
Open your preferred method to access the command line, such as Terminal on macOS or PowerShell on Windows.
-
Navigate to the desired directory
Ensure your current working directory is the desired parent directory for your new app. Don't create the project folder, the
fluttertool will do so. -
Configure project creation
In your terminal, type out the
flutter createcommand and pass in any desired flags and options to configure your project. For example, to create an app with a minimalmain.dartfile, you can add the--emptyoption:flutter create --emptyTo learn about the available creation options, run
flutter create --helpin another terminal window. -
Enter a project name
As the only non-option argument to
flutter create, specify the directory and default name for your application. The name should follow thelowercase_with_underscoresnaming convention, following the Effective Dart guidelines.For example, if you wanted to create an app named
my_app:flutter create my_app -
Execute the configured command
To create a project with your specified configuration, run the command you built in the previous step.
-
Wait for project initialization
The
fluttertool will now bootstrap your project's file structure and retrieve any necessary dependencies. This might take a while. -
Navigate into the project directory
Now that your project has been created, you can navigate to it in your terminal or your preferred editor. For example, with a bash shell and a project named
my_app:cd my_app -
Run your app
To try your new app, run the
flutter runcommand in your terminal and respond to its prompts to select an output device.
You've successfully created a new Flutter app in your terminal!
If you need help configuring your project or with the flutter CLI tool,
check out the Flutter CLI reference.
Unless stated otherwise, the documentation on this site reflects Flutter 3.41.5. Page last updated on 2026-03-25. View source or report an issue.