This article is a guide for the Flutter app developers, especially, the beginners who want to jump into Flutter development.
If you haven’t installed Visual Studio Code yet, install it. Check it out here.
To create a Flutter app, follow the following steps.
Type “flutter”, and select Flutter: New Project.
Enter a project name like myfirstapp, and press Enter.
Create or select the parent directory for the new project folder.
Wait for the project to be created and you are good to go. Your first flutter app has been created with default counter template. ::)
The startup file of the app is main.dart under lib folder and you need to almost work in lib folder for app. You need to work in other folders sometimes when you need to configure settings and plugins but that is limited.
Now run your project to a connected external device or an emulator or simulator. Run the command flutter run or in VS Code open Debug=>Start Debug(F5)
If you want to run apps on external device connect it with a laptop or desktop and for android developer mode need to be on. You will find that Visual Studio code automatically tries to detect the external device you can see in the following screenshot that visual studio code detected my device. Please see bottom of visual studio code.
On successful launch you can see the counter app running on your device or emulator or simulator.
Flutter framework is handy and easy to start mobile development. Visual Studio and Android Studio both have full IDE support that makes for a better development experience.
#flutter #vscode #mobile-apps