Flutter with Android Studio
How to start and how to setup environment of flutter with Android Studio?
Table of contents
Flutter is an open-source, cross-platform mobile app development framework created by Google. It is used to develop applications for Android, iOS, Windows, Mac, Linux, Google Fuchsia, and the web.
Flutter is based on the Dart programming language and uses the Skia graphics engine.
The framework was first announced at the 2015 Dart developer summit, with a 1.0 stable release in December 2018.
How to Start with Flutter?
Prerequisites: Before starting with Flutter, make sure you have installed the following software:
• The latest version of Android Studio • JDK 8 or higher • Android SDK • Set up your PATH variable to include the following directories: %JAVA_HOME%\bin %ANDROID_HOME%\emulator %ANDROID_HOME%\tools %ANDROID_HOME%\platform-tools
Install the Flutter plugin: Launch Android Studio. Open plugin preferences (Configure > Plugins as of v3.6.3.0 or later). Select Browse repositories, select the Flutter plug-in and click Install. Click Yes when prompted to install the Dart plugin. Click Restart when prompted.
Create a new project: In the Welcome to Android Studio window, click Start a new Flutter project. You might see a message with one or more links to Learn how to setup the Android Studio for developing Flutter apps. Read through the message and dismiss it by clicking OK. In the Select a new project window, choose Empty Activity and click Next.
Configure the new project: In the Configure your new project window, type myapp for both the Project name and Project location fields. Then click Finish.
After a few seconds, Android Studio should display the main file for your new project, main.dart.