Getting started on Flutter is easy with just a few downloads and commands. They are few variations how you can setup Flutter and will show you the most common route. To build and run a flutter app you will need:
- Flutter SDK
- IDE – I recommend Android Studio
- Plugins – Flutter and Dart plugins for Android Studio
This is a quick setup guide. If you need more details or are having trouble, you can find more details going through the Flutter Getting Started documentation.
Flutter SDK
- Download the Flutter SDK, choose the latest one available.
- For Windows, you will need to ensure you have PowerShell 5.0+ and Git for Windows installed
- For MacOS and Linux, ensure you have
bash
,mkdir
,rm
,git
,curl
,unzip
,which
- Extract the SDK any location. e.g.
c:\flutter
or/usr/local
- Set your Flutter Path environment variable, preferably permanently.
- For Windows, you can enter the following command
setx path "%path%;c:\flutter\bin\"
- For MacOS and Linux, you will want to open or create
$HOME/.bash_profile
and add this lineexport PATH=/usr/local/flutter/bin:$PATH
- For Windows, you can enter the following command
- Close all command or terminal windows.
- Open a command or terminal windows and type
flutter doctor
Editor Setup
Your new flutter app will have a file: Your new app will be created. In here you can go to Make sure you have a device or emulator running. On Mac you will need Xcode if you want the iOS simulators. On WIndows or Mac if you want the Android emulators you will need Android Studio. You can start an Android Emulator via the AVD Manager. Then go to We have worked through setting up everything you need to build and run a Flutter app. If you require more information on setting up your environment, please take a look at the Flutter Getting Started documentation. This is just the beginning. You are soon going to see, how powerful and easy Flutter is.Android Studio
Flutter
and Dart
plugins.File > Settings
then select Plugins
Preferences > Plugins
Browse Repositories
, and search and install Flutter
and Dart
plugins.Create New Flutter App
File > New > New Flutter Project
lib/main.dart
. This is your main app code. Select your device, and press run and you will see your app load.
VS Code
View > Extensions
Dart
and press installCreate New Flutter App
View > Command Palette
flutter
and select Flutter: New Project
lib/main.dart
. This is your main app code.Debug > Start Debugging
to start running your app.Summary