Docly Child

Getting Started (Build & Run)

Estimated reading: 2 minutes 54 views

Follow below steps to build and run your application. 

Important
All below steps are must be followed to build and run application

Download Project

Download and find the your project folder, use your preferred IDE (Android Studio / Visual Studio Code / IntelliJ IDEA) to run the project.

Get Dependencies

After you loaded project successfully, run the following command in the terminal to install all the dependencies listed in the pubspec.yaml file in the project’s root directory.

flutter pub get

 If you don’t want to run command just click on Pub get. You will see it in top right corner in pubspec.yaml file.

Important
All below steps are must be followed to build and run application

Build and Run App

  1. Locate the main Android Studio toolbar.
  2. In the target selector, select an Android device for running the app. If none are listed as available, select Tools > Android > AVD Manager and create one there. For details, see Managing AVDs.
  3. Click the run icon in the toolbar, or invoke the menu item Run > Run.
After the app build completes, you’ll see the app on selected target device.

If you don’t use Android Studio or IntelliJ you can use the command line to run your application using the following command – 

flutter run
Important
To run flutter commands flutter path has to be set in your Environment variables.

You will see below like screen after you have build your app successfully 

Try hot reload

Flutter offers a fast development cycle with Stateful Hot Reload, the ability to reload the code of a live running app without restarting or losing app state. Make a change to app source, tell your IDE or command-line tool that you want to hot reload, and see the change in your simulator, emulator, or device.
Important

Do not stop your app. let your app run.

Leave a Comment

Share this Doc
CONTENTS