Flutter Journey 002 — Create a new Flutter project in Android Studio and VS Code
Welcome to the world of Flutter! If you’re an aspiring mobile app developer, you’ve probably heard of Flutter, the open-source UI toolkit from Google.
In this article, we will explore how to create a Flutter project using two popular IDEs, Visual Studio Code and Android Studio. We will walk through the step-by-step process of setting up a new Flutter project, and getting your first Flutter app up and running.
So, let’s dive in and get started!
Android Studio
Open the Android Studio.
click on the “New Flutter Project”
Select the “Flutter” from the left menu options and select the Flutter SDK from pc or copy and paste the Flutter SDK path and click on Next.
write the project name. I wrote “demo_project” in the project name.
Important
One important thing is to change the package name. “com.example” is being written by default in front of the organization option. The app will not be published on Play Store with this package name. So you have to change this. For example “com.zubair” or anything else you want.
Click on finish. You are ready to code.
The other way to create a flutter project in the Android studio is if you have already opened a project and want to create a new flutter project from there then click on “File” from the top menu bar and then “New” and after that click on “New Flutter Project”.
A new window will open. Follow from step 2 and so on.
Visual Studio
Open the VS Code.
Click on the “view” option from the top menu and then select the “command palette” option.
select the “flutter: new project” option.
select the option “Application”.
A new window will open to select the folder to save the project in.
Select the folder and follow the steps. A new flutter project will create.
I Hope, It helps to create a Flutter project.