Dart & Flutter: Install prerequisites & environments for Mobile Development

by Nov 22, 2019Mobile Apps

Home 9 Development 9 Mobile Apps 9 Dart & Flutter: Install prerequisites & environments for Mobile Development

To be able to create your app in Dart & Flutter, you have to set up your environment first.

Flutter

Download here: https://flutter.dev/docs/development/tools/sdk/releases

  1. Extract the ZIP file to your computer (do not put them in any system directory like Program Files).
  2. Register your new directory with extracted files in your system PATH environment.
    1. On the Windows desktop, right-click My Computer.
    2. In the pop-up menu, choose Properties.
    3. In the System Properties window, click the Advanced tab, and then choose Environment Variables.
    4. In the System Variables window, select Path, and click Edit.
  3. Open Command Line
    1. Navigate to the directory with extracted files.
    2. Run command “flutter doctor”
      1. This command checks your system and reports every possible problem or missing requirement.
      2. Resolve all reported problems except missing Android studio and missing Extensions for Dart or Flutter (will be described later in this article)

Android Studio

The Android Studio must be installed in order to develop apps in Flutter even if you use a different editor (such as Visual Studio Code that I prefer). Download here: https://developer.android.com/studio

  1. Install the Android studio using downloaded Wizard.
    1. Install Android SDK Command-line Tools & SDK Build-Tools
    2. Install Android SDKs (I personally recommend to install all SKDs from 4.0),
      1. If the SDKs were not installed during the installation (or you want to change SDKs that are available) run the Android Studio and select “Configure” -> “SDK Manager”.
SDK Manager in Android Studio

Editor (personally prefer Visual Studio Code)

Even if we already installed Android Studio (that was a necessary step) I personally prefer Visual Studio Code for both Business Central and Flutter & Dart development, so next, we will look how to set up Visual Studio Code.

  1. In the left menu choose “Extensions”
  2. In the search pane, type “Flutter” and select the packed “Flutter” from author “Dart Code”. Both Flutter & Dart will be installed.
  3. Reload the Visual Studio Code.
  4. Run “Command Palette…” from “View” menu (or using Ctrl + Shift + P) and type “Flutter: Run Flutter Doctore” to check the installation. The result should be without any errors. You might see a warning about Android Studio but it is not really important right now.

We have successfully installed and configured all necessities for Dart & Flutter development. In the next article, we will look at Android Emulator and Hello World example.

Recent Articles from the category

BC TechTalk TODAY!

Finally, it is here! Another conference about Business Central is here and due to COVID-19, it's online and totally free. Check all amazing sessions from best speakers from the Business Central world. The agenda is on the web HERE. And if you are interested in mobile...

read more

Dart & Flutter: Use of REST GET method

This chapter we will continue with the project that we created before. The project could be found on GitHub. Now when we have a runnable app with homepage and standardized navigation, we can look on how to load data using REST. We will start with the basic example of...

read more

Dart & Flutter: Project Initialization

We have already prepared development environment and Android Emulators in previous articles. In this chapter, we will look at how to create a new project and on the generated files. To start with, open Visual Studio Code (or any other support development environment)...

read more

Dart & Flutter: What is it?

As from my point of view, the original mobile app for Microsoft Dynamics 365 Business Central is not suitable for some industries, especially when there are some requests on special behaviour (such as automation, bar code scanning & automation or special system...

read more

Sign Up for News

Certifications

Highest certification
Microsoft Data Management and
also in D365 Business Central

Microsoft Certified: Dynamics 365 Business Central Functional Consultant Associate

See other certifications here