Getting Started With Flutter: An Installation Guide
Build a Hello World for your first Flutter cross-platform app
Flutter is a mobile SDK meant for designing high-performance and high-fidelity mobile apps for iOS and Android using a single codebase.
Technically, Flutter is an open-source UI software development kit created by Google. It’s used to develop applications for Android, iOS, the web, etc. Flutter apps can be written in the Dart programming language.
Dart is a client-optimized language for fast apps on any platform. It‘s optimized for UI, fast on all platforms, and includes productive development.
By using Dart, it will automatically achieve Ahead-of-Time compilation (AOT).
First, download Flutter SDK and set the path on
Here we go. Just follow the commands in terminal.
In my case, I have installed Xcode, Android Studio, and Visual Studio Code.
So when you hit ‘enter’ after typing “flutter doctor,” it shows you:
If you have not installed Xcode, Android Studio, and Visual Studio Code, follow these steps.
Install Xcode from the App Store. That’s it.
Download Android Studio and install the Flutter and Dart plugins.
To install these:
- Start Android Studio.
- Open plugin preferences (Preferences > Plugins on macOS, File > Settings > Plugins on Windows and Linux).
- Select Marketplace, select the Flutter and Dart plugins, and click Install.
- Click Yes when prompted to install the Dart plugin and restart.
Then, you have to configure the paths for Android Studio and Android SDK. Open terminal:
flutter config --android-studio-dir /Applications/Android\Studio.app
flutter config --android-sdk ~/Library/Android/sdk
All done for Android.
Install Visual Studio Code and install the Flutter and Dart plugins.
- Start VS Code and Invoke View > Command Palette.
- Type “install” and select Extensions: Install Extensions.
- Type “flutter” in the extensions search field, select Flutter from the list, and click Install. This also installs the required Dart plugin.
All set. Now go to terminal and type “flutter doctor.”
For connected devices, you have to connect a physical device (iOS/Android) through a USB cable and enable developer options in Android. Or you can use an emulator or simulator.
Let’s discuss basic Flutter commands in an upcoming piece. Cheers!