To install the Flutter SDK, you can use the VS Code Flutter extension or download and install the Flutter bundle yourself. Here recommend use the VS Code Flutter extension.
1.2.1. Use VS Code to install Flutter
Open VS Code.
To open the Command Palette, press Command + Shift + P.
In the Command Palette, type flutter.
Select Flutter: New Project.
VS Code prompts you to locate the Flutter SDK on your computer.
If you have the Flutter SDK installed, click Locate SDK.
If you do not have the Flutter SDK installed, click Download SDK.
This option sends you the Flutter install page if you have not installed Git for Windows as directed in the development tools prerequisites.
When prompted Which Flutter template?, ignore it. Press Esc. You can create a test project after checking your development setup.
1.2.2. Download the Flutter SDK
When the Select Folder for Flutter SDK dialog displays, choose where you want to install Flutter.
VS Code places you in your user profile to start. Choose a different location.
Consider ~/development/
Click Clone Flutter.
While downloading Flutter, VS Code displays this pop-up notification:
Downloading the Flutter SDK. This may take a few minutes.
This download takes a few minutes. If you suspect that the download has hung, click Cancel then start the installation again.
Once it finishes downloading Flutter, the Output panel displays.
Checking Dart SDK version...
Downloading Dart SDK from the Flutter engine ...
Expanding downloaded archive...
When successful, VS Code displays this pop-up notification:
Initializing the Flutter SDK. This may take a few minutes.
While initializing, the Output panel displays the following:
This process also runs flutter doctor -v. At this point in the procedure, ignore this output. Flutter Doctor might show errors that don’t apply to this quick start.
When the Flutter install succeeds, VS Code displays this pop-up notification:
Do you want to add the Flutter SDK to PATH so it's accessible
in external terminals?
VS Code may display a Google Analytics notice.
If you agree, click OK.
To enable flutter in all Terminal windows:
Close, then reopen all Terminal windows.
Restart VS Code.
If you have installed all prerequisites and the Flutter SDK, you should be able to start developing Flutter on macOS for mobile-android.
1.3. Configure Android development
1.3.1. Configure the Android toolchain in Android Studio
Go to the Settings dialog to view the SDK Manager.
If you have a project open, go to Tools > SDK Manager.
If the Welcome to Android Studio dialog displays, click the More Options icon that follows the Open button and click SDK Manager from the dropdown menu.
Click SDK Platforms.
Verify that Android API 33.0.0 has been selected.
If the Status column displays Update available or Not installed:
Select Android API 33.0.0.
Click Apply.
When the Confirm Change dialog displays, click OK.
The SDK Quickfix Installation dialog displays with a completion meter.
When the install finishes, click Finish.
After you installed the latest SDK, the Status column might display Update available. This means some additional system images might not be installed. You can ignore this and continue.
Click SDK Tools.
Verify that the following SDK Tools have been selected:
Android SDK Command-line Tools
Android SDK Build-Tools
Android SDK Platform-Tools
Android Emulator
If the Status column for any of the preceding tools displays Update available or Not installed:
Select the needed tools.
Click Apply.
When the Confirm Change dialog displays, click OK.
The SDK Quickfix Installation dialog displays with a completion meter.
When the install finishes, click Finish.
1.3.2. Configure your target Android device: Set up the Android emulator
To configure your Flutter app to run in the Android emulator, follow these steps:
Go to the Settings dialog to view the SDK Manager.
If you have a project open, go to Tools > Device Manager.
If the Welcome to Android Studio dialog displays, click the More Options icon that follows the Open button and click Device Manager from the dropdown menu.
Click Virtual.
Click Create Device.
The Virtual Device Configuration dialog displays.
Select either Phone or Tablet under Category.
Select a device definition. You can browse or search for the device.
Click Next.
Click x86 Images if your Mac runs on an Intel CPU or ARM Images if your Mac runs on an Apple CPU.
Click one system image for the Android version you want to emulate.
If the desired image has a Download icon to the right of the Release Name, click it.
The SDK Quickfix Installation dialog displays with a completion meter.
When the download completes, click Finish.
Click Next.
The Virtual Device Configuration displays its Verify Configuation step.
To rename the Android Virtual Device (AVD), change the value in the AVD Name box.
Click Show Advanced Settings.
Scroll to Emulated Performance.
From the Graphics dropdown menu, select Hardware - GLES 2.0.
In the Device Manager dialog, click the Run icon to the right of your desired AVD. The emulator starts up and displays the default canvas for your selected OS version and device.
1.3.3. Agree to Android licenses
Before you can use Flutter and after you install all prerequisites, agree to the licenses of the Android SDK platform.
Open an elevated console window.
Run the following command to enable signing licenses.
$ flutter doctor --android-licenses
If you accepted the Android Studio licenses at another time, this command returns:
[========================================] 100% Computing updates...
All SDK package licenses accepted.
You can skip the next step.
Before agreeing to the terms of each license, read each with care.
1.4. Check your development setup
1.4.1. Run Flutter doctor
The flutter doctor command validates that all components of a complete Flutter development environment for macOS.
Open the Terminal.
To verify your installation of all the components, run the following command.
$ flutter doctor
As you chose to develop for Android, you do not need all components. If you followed this guide, the result of your command should resemble:
Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.4, on macOS A.B chipset, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[!] Chrome - develop for the web
[!] Xcode - develop for iOS and macOS (Xcode not installed)
[✓] Android Studio (version 2022.3 (Giraffe) or later)
[✓] VS Code (version 1.81.1)
[✓] Connected device (1 available)
[✓] Network resources
! Doctor found issues in 2 categories.
If you have homebrew installed, type brew install git.
The developers of the preceding software provide support for those products. To troubleshoot installation issues, consult that product’s documentation.
2.1.3. Text editor or integrated development environment
You can build apps with Flutter using any text editor or integrated development environment (IDE) combined with Flutter’s command-line tools.
Using an IDE with a Flutter extension or plugin provides code completion, syntax highlighting, widget editing assists, debugging, and other features.
To install the Flutter SDK, you can use the VS Code Flutter extension or download and install the Flutter bundle yourself. Here we recommend use VS Code Flutter extension.
2.2.1. Use VS Code to install Flutter
Open VS Code.
To open the Command Palette, press Command + Shift + P.
In the Command Palette, type flutter.
Select Flutter: New Project.
VS Code prompts you to locate the Flutter SDK on your computer.
If you have the Flutter SDK installed, click Locate SDK.
If you do not have the Flutter SDK installed, click Download SDK.
This option sends you the Flutter install page if you have not installed Git for Windows as directed in the development tools prerequisites.
When prompted Which Flutter template?, ignore it. Press Esc. You can create a test project after checking your development setup.
2.2.2. Download the Flutter SDK
When the Select Folder for Flutter SDK dialog displays, choose where you want to install Flutter.
VS Code places you in your user profile to start. Choose a different location.
Consider ~/development/
Click Clone Flutter.
While downloading Flutter, VS Code displays this pop-up notification:
Downloading the Flutter SDK. This may take a few minutes.
This download takes a few minutes. If you suspect that the download has hung, click Cancel then start the installation again.
Once it finishes downloading Flutter, the Output panel displays.
Checking Dart SDK version...
Downloading Dart SDK from the Flutter engine ...
Expanding downloaded archive...
When successful, VS Code displays this pop-up notification:
Initializing the Flutter SDK. This may take a few minutes.
While initializing, the Output panel displays the following:
This process also runs flutter doctor -v. At this point in the procedure, ignore this output. Flutter Doctor might show errors that don’t apply to this quick start.
When the Flutter install succeeds, VS Code displays this pop-up notification:
Do you want to add the Flutter SDK to PATH so it's accessible
in external terminals?
VS Code may display a Google Analytics notice.
If you agree, click OK.
To enable flutter in all Terminal windows:
Close, then reopen all Terminal windows.
Restart VS Code.
If you have installed all prerequisites and the Flutter SDK, you should be able to start developing Flutter on macOS for mobile-ios.
To develop Flutter apps for macOS, install Xcode to compile to native bytecode.
To configure the Xcode command-line tools to use the installed version, run the following commands.
$ sudo sh -c 'xcode-select -s /Applications/Xcode.app/Contents/Developer && xcodebuild -runFirstLaunch'
To use the latest version of Xcode, use this path. If you need to use a different version, specify that path instead.
To install the iOS Simulator, run the following command.
$ xcodebuild -downloadPlatform iOS
Sign the Xcode license agreement.
$ sudo xcodebuild -license
Try to keep to the current version of Xcode.
2.3.2. Configure your target iOS device: Configure your iOS simulator
With Xcode, you can run Flutter apps on an iOS device or on the simulator.
To prepare to run and test your Flutter app on the iOS simulator, follow this procedure.
To start the Simulator, run the following command:
open -a Simulator
Set your Simulator to use a 64-bit device. This covers the iPhone 5s or later.
From Xcode, choose a simulator device type.
Go to Window > Devices and Simulators. You can also press Cmd + Shift + 2.
Once the Devices and Simulators dialog opens, click Simulators.
Choose a Simulator from the left-hand list or press + to create a new simulator.
From the Simulator app, go to File > Open Simulator > Choose your target iOS device.
To check the device version in the Simulator, open the Settings app > General > About.
The simulated high-screen density iOS devices might overflow your screen. If that appears true on your Mac, change the presented size in the Simulator app.
Display Size
Menu command
Keyboard shortcut
Small
Window > Physical Size
Cmd + 1
Moderate
Window > Point Accurate
Cmd + 2
HD accurate
Window > Pixel Accurate
Cmd + 3
Fit to screen
Window > Fit Screen
Cmd + 4
2.3.3. Install CocoaPods
If your apps depend on Flutter plugins with native macOS code, install CocoaPods. Built using Ruby, CocoaPods handles the bundling of various dependencies across Flutter and macOS code.
Using Homebrew reduces potential issues with chipsets and install permissions.
2.4. Check your development setup
2.4.1. Run Flutter doctor
The flutter doctor command validates that all components of a complete Flutter development environment for macOS.
Open the Terminal.
To verify your installation of all the components, run the following command.
$ flutter doctor
As you chose to develop for iOS, you do not need all components. If you followed this guide, the result of your command should resemble:
Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.4, on macOS A.B chipset, locale en)
[!] Android toolchain - develop for Android devices
[!] Chrome - develop for the web
[✓] Xcode - develop for iOS and macOS (Xcode 15)
[!] Android Studio (not installed)
[✓] VS Code (version 1.81.1)
[✓] Connected device (1 available)
[✓] Network resources
! Doctor found issues in 3 categories.
3. Flutter Demo
3.1. Create your sample Flutter app with Visual Studio Code
Open the Command Palette.
Go to View > Command Palette or press + Shift + P.
Type flutter
Select the Flutter: New Project.
When prompted for Which Flutter Project, select Application.
Create or select the parent directory for the new project folder.
When prompted for a Project Name, enter test_drive.
Press Enter.
Wait for project creation to complete.
Open the lib directory, then the main.dart.
To learn what each code block does, check out the comments in that Dart file.
The previous commands create a Flutter project directory called my_app that contains a simple demo app that uses Material Components.
3.2. Run your sample Flutter app
Run your example application on your desktop platform or in an iOS simulator or Android emulator.
Though you can deploy your app to the web, don’t choose that target for this tutorial. The web target doesn’t support hot reload at this time.
Open the Command Palette.
Go to View > Command Palette or press + Shift + P.
Type flutter
Select the Flutter: Select Device.
If no devices are running, this command prompts you to enable a device.
Select a target device from Select Device prompt.
After you select a target, start the app. Go to Run > Start Debugging or press F5.
Wait for the app to launch.
You can watch the launch progress in the Debug Console view.
After the app build completes, your device displays your app.
Congratulations, your flutter development environment for both Android and iOS is now successfully configured.
About The Author
Emma Rodriguez
Mobile Development Expert with expertise in Flutter and React Native