View video tutorial

FLUTTER and VS Code

FLUTTER

Visual Studio Code (VS Code) is a powerful and popular IDE for Flutter development that offers numerous features.

VS Code for Flutter


➔ Visual Studio Code (VS Code) is a very lightweight and recommended editor for Flutter development that provides a cross-platform development and debugging experience through plugins.

Flutter Application in Visual Studio Code.


There are only 3 steps to follow to develop flutter application in VS Code:

1: Install flutter SDK and set environment path variable. Install the Flutter SDK.

2: Install Android Studio and create Android Virtual Device (Android Emulator). Install Android Studio.

3: Install Visual Studio Code. Open project(created by command-line), and run project from VS Code on real device a USB connected phone (or in the emulator created in step 2).

Flutter Project in Visual Studio Code.


Visit VS Code official website and download VSCode from https://code.visualstudio.com/download.

vscode and flutter

Select User Installer 64bit

vscode and flutter

Right Click on downloaded file and select install

vscode and flutter

Select I accept the agreement and click next

vscode and flutter

click Next

vscode and flutter

click Next

vscode and flutter

click Next

vscode and flutter

click Install

vscode and flutter

Installation progress

vscode and flutter

click Finish

vscode and flutter

User Interface of Visual Studio Code.

vscode and flutter

Select plugin icon (left side) search for dart plugin and click install.

vscode and flutter

Select plugin icon (left side) search for flutter plugin and click install.

vscode and flutter

Open command line window, create flutter project by flutter create project_name command.

To run flutter project first go inside the project by cd project_name command then run project by flutter run command.

Node: Alternatively to run the project from VS Code, right click on main.dart (under the lib folder) and select Run without Debugging..

vscode and flutter

Flutter application run on android emulator by command-line interface and edited by Visual Studio Code.

vscode and flutter

From now on we can see connected devices by clicking on the bottom-right corner of the screen and select a device to use as emulator (mobile emulator) or real device (mobile), or can even create an emulator to run application.