This guide will help you set up Flutter on your development machine, enabling you to build cross-platform applications efficiently. Follow these steps to install Flutter and prepare your development environment.
Before installing Flutter, ensure you have the following prerequisites:
flutter_windows_<version>-stable.zip
file.flutter_macos_<version>-stable.zip
file.flutter_linux_<version>-stable.tar.xz
file.Windows:
.zip
file to a desired location (e.g., C:\src\flutter
).This PC
or Computer
on the desktop or in File Explorer.Properties
-> Advanced system settings
.Environment Variables
.System variables
section, find the Path
variable and click Edit
.flutter/bin
directory (e.g., C:\src\flutter\bin
).macOS/Linux:
unzip ~/Downloads/flutter_macos_<version>-stable.zip
tar xf ~/Downloads/flutter_linux_<version>-stable.tar.xz
.bash_profile
, .bashrc
, or .zshrc
file in your home directory:
nano ~/.bash_profile
export PATH="$PATH:`<path-to-flutter-directory>`/flutter/bin"
source ~/.bash_profile
flutter doctor
flutter doctor
to complete the setup. This may include installing additional tools like Android Studio or Xcode.Visual Studio Code:
Android Studio:
Preferences
(macOS) or Settings
(Windows/Linux).Plugins
and search for and install the Flutter and Dart plugins.Android Emulator:
AVD Manager
(Android Virtual Device).iOS Simulator (macOS only):
Xcode
-> Preferences
-> Components
.Simulator
app to run iOS simulators.flutter --version
flutter doctor
If all checks are passed, your Flutter environment is ready for development.