To install Flutter and Dart SDK on your local machine.
To install and run Flutter, your Windows environment must meet the following hardware requirements:
Requirement | Minimum | Recommended |
---|---|---|
x86_64 CPU Cores | 4 | 8 |
Memory in GB | 8 | 16 |
Display resolution in pixels | WXGA (1366 x 768) | FHD (1920 x 1080) |
Free disk space in GB | 11.0 | 60.0 |
To write and compile Flutter code for Android, you must have the following version of Windows and the listed software packages.
Tip: You do not need to install Dart separately as the Flutter SDK includes the full Dart SDK.
Flutter supports 64-bit version of Microsoft Windows 10 or later. These versions of Windows should include the required Windows PowerShell 5 or later.
Download and install the Windows version of the following packages:
- Git for Windows 2.27 or later to manage source code.
- Android Studio 2023.3.1 (Jellyfish) or later to debug and compile Java or Kotlin code for Android. Flutter requires the full version of Android Studio.
The developers of the preceding software provide support for those products. To troubleshoot installation issues, consult that product's documentation.
When you run the current version of flutter doctor
, it might list a different version of one of these packages. If it does, install the version it recommends.
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.
Popular options include:
- Visual Studio Code 1.77 or later with the Flutter extension for VS Code.
- Android Studio 2023.3.1 (Jellyfish) or later with the Flutter plugin for IntelliJ.
- IntelliJ IDEA 2023.3 or later with the Flutter plugin for IntelliJ.
Recommended: The Flutter team recommends installing Visual Studio Code 1.77 or later and the Flutter extension for VS Code This combination simplifies installing the Flutter SDK.
- Visit the Flutter official website.
- Choose your operating system (Windows, macOS, Linux).
- Download the Flutter SDK zip file.
- Extract the downloaded zip file to a desired location on your system.
- Add the
flutter/bin
directory to your system's PATH environment variable.
- Open a command line interface.
- Run the command:
flutter doctor
- Follow any additional setup instructions provided by
flutter doctor
.
- Dart SDK is bundled with Flutter, so no separate installation is required.
- Verify Dart installation by running:
dart --version
You have successfully installed Flutter and Dart SDK on your machine. You are now ready to start developing Flutter applications.
- What is the purpose of the
flutter doctor
command? - How can you verify the installation of Dart SDK?
- What are the system requirements for installing Flutter and Dart SDK?
- Why is it important to add the
flutter/bin
directory to the system's PATH environment variable? - Can you install Dart SDK separately from Flutter? Explain.