Flutter

From XennisWiki
Jump to: navigation, search

Flutter is an open-source mobile application framework created by Google. It is used to develop applications for Android and iOS, as well as being the primary method of creating applications for Google Fuchsia. (Wikipedia)

Installation

Arch Linux

Install the flutter package. Add <path>/flutter/bin to the PATH. Then run flutter doctor to validate installation.

Git

Clone a version of Flutter

git clone -b beta https://github.com/flutter/flutter.git

Add it to PATH and run flutter doctor

Setup

Android Studio

See Android Studio for installation. Next install the Flutter plugin.

VS Code

See VS Code for installation. Install the plugin Dart-Code.flutter as well. Press {key press|ctrl|p} and enter >Flutter: New Project.

Errors and problems

Unable to locate Android SDK

Error message
Unable to locate Android SDK
Solution

Set the following environment variable

ANDROID_HOME=~/path/to/android/sdk

Tips

Upgrade

flutter upgrade

See also

External links