December 27, 2018
December 27, 2018
In this tutorial you’ll learn how to get involved in Flutter development using WebStorm by setting up your coding environment and even creating you first own Flutter project!
Flutter is Google’s new mobile framework which helps you rapidly develop high performance mobile applications for both Android and iOS platforms with native look and feel. Sounds fun, right? So let’s get started!
Flutter uses Dart programming language, which can be surprising at the first sight, but don’t worry, there are bunch of Dart language tutorials available online. If you’re not familiar with the language yet, you can take a look at the official site. But I’d recommend you to start diving into Flutter and follow the official documentations and examples and start building your own app!
Before you can start coding your Flutter app, there are some prerequisites you have to set up first. The most important one is the development kit (Flutter SDK) which makes Flutter available for you.
The first step is to download and extract the Flutter SDK which can be found here. After installation you’ll need to configure the PATH environment variable so you’ll be able to use Flutter commands from terminal. I highly recommend you to add the Flutter SDK location to bash profile so you’ll be all set even after restarting you computer.
After you have configured your PATH and installed the Flutter SDK you can easily check if there are some missing tools you’ll have to install before getting started with Flutter development. To complete the installation process run the flutter doctor [-v] command from terminal which will guide you finishing the setup process.
After the prerequisite have been properly set, you have to chose your working environment, there are many options available but in this tutorial we’re going to use WebStorm.
WebStorm has its own Dart and Flutter plugins so make sure you install them before running you first project. Installing the Dart support is relatively easy, it can be downloaded from WebStorm’s plugin marketplace by selecting
Preferences in the main menu and choosing the Plugins option in the left hand side menu. By searching for Dart the following results should be displayed:
After installing the Dart language plugin there’s only one thing left to set up before jumping into coding. Installing the Flutter plugin, which can be downloaded from here. Installing a third party plugin is a bit trickier: after navigating to the plugins page, select the gear icon on the top right corner and chose the
Install plugin from Disk… option:
Good job, now you’re all set!
Fortunately there’s an example project available after you have successfully installed the Flutter plugin. To open it just select the
File/New/Project option and chose Flutter in the menu:
Make sure the path for Flutter SDK is properly set and you can even select the languages used for Android and iOS platforms. After you have created your first project make sure you test it in a Simulator. You can easily experiment with the code with Flutter’s hot reload feature, which automatically updates your app if you save you changes in the dart files
After you got familiar with the default Flutter project, I recommend you to follow this tutorial and to start working on you amazing Flutter application!
Make sure you are following Brains & Beards for weekly Flutter, React Native and mobile application development related content because we always like to share our findings with the community and dig into the latest technologies.
If you liked this post, why don't you subscribe for more content? If you're as old-school as we are, you can just grab the RSS feed of this blog. Or enroll to the course described below!
Alternatively, if audio's more your thing why don't you subscribe to our podcast! We're still figuring out what it's going to be, but already quite a few episodes are waiting for you to check them out.