Step-by-Step Guide: Setting Up Flutter and Running Your First App


12/5/20232 min read

Flutter is an open-source UI software development kit created by Google, which allows developers to build beautiful and high-performance native applications for mobile, web, and desktop platforms. If you're new to Flutter and want to get started with developing your own apps, this step-by-step guide will walk you through the process of setting up Flutter and running your first app.

Step 1: Install Flutter SDK

The first step is to download and install the Flutter SDK. Visit the official Flutter website ( and click on the "Get Started" button. Choose the appropriate version for your operating system (Windows, macOS, or Linux) and follow the installation instructions.

Step 2: Set Up Flutter Environment Variables

After installing the Flutter SDK, you need to set up the necessary environment variables. Add the Flutter SDK's bin directory to your system's PATH variable. This will allow you to run Flutter commands from any directory in your terminal or command prompt.

Step 3: Install Flutter and Dart Plugins

If you're using an Integrated Development Environment (IDE) like Visual Studio Code or Android Studio, you'll need to install the Flutter and Dart plugins. Open your IDE and navigate to the extensions or plugins marketplace. Search for "Flutter" and "Dart" plugins, then install and activate them.

Step 4: Verify Flutter Installation

To verify that Flutter is installed correctly, open your terminal or command prompt and run the following command:

flutter doctor

This command will check your Flutter installation and display a report with any issues or missing dependencies. Make sure to resolve any problems before proceeding.

Step 5: Create a New Flutter Project

Now that your Flutter environment is set up, you can create a new Flutter project. Open your terminal or command prompt and navigate to the directory where you want to create your project. Run the following command:

flutter create my_first_app

This will create a new Flutter project named "my_first_app" in the specified directory.

Step 6: Run Your Flutter App

Once your project is created, navigate to the project directory in your terminal or command prompt. Run the following command to start the app:

cd my_first_app
flutter run

This command will compile your Flutter app and launch it in the connected device or emulator. Make sure you have a device connected or an emulator running before executing this command.

Step 7: Congratulations! You've Run Your First Flutter App

If everything goes smoothly, you should see your Flutter app running on the connected device or emulator. Congratulations on running your first Flutter app!

Now that you have successfully set up Flutter and run your first app, you can explore the vast Flutter ecosystem, experiment with different widgets, and start building your own amazing applications.

Happy coding!