Flutter Day : 1 Installation
Nikhil Suryawanshi
MLOps Engineer | 7x GCP | Kubernetes | Terraform | AWS | DevOps | Java | Python
Flutter :
- Flutter is an app SDK for building high-performance, high-fidelity apps for iOS, Android, web (beta), and desktop (technical preview) from a single codebase. The goal is to enable developers to deliver high-performance apps that feel natural on different platforms.
Installation of flutter and developing a test_application :
For this you have to follow some easy steps:
- Download flutter for windows from the official flutter link and extract the zip
- Add the folder path to the environmental variables
- After setting environment check flutter is working for this ,
open cmd and type flutter
- Check the flutter version for checking the flutter is working properly
Now , for checking the requirements of the flutter run command
$ flutter doctor
For first Error or requirement contains Android toolchain for this you have to install android studio and Android sdk
For this download android studio from this link and simply click next
After install Android studio setup wizard starts now follow this steps
After configuring this android studio starts
Now , go to configure and then plugins
Search the flutter plugin
Install this plugin
Restart IDE
Install SDK tools and drivers
Downloading selected tools and drivers
After this start android ADV Manager
Create the virtual Device
Choose according to your requirements
Download any Android version image
Accept the license Agreement
After Downloading click next
Select the downloaded image
Choose user name for the Android Emulator
After starting the emulator kit looks like this
After setting this all setup again run command flutter doctor for checking the requirements if no error comes then you can continue to create your application
For testing the environment create test_application , for this run this command
$ flutter create test_app
After create teat_app run commands
$ cd test_app $ flutter run
Accept the firewall permission to access the emulator through the api
After sometime the app automatically runs to the emulator
Instead of running this command you can use the IDE also for this i have install visual studio code , you can use any other IDE also
For installing this ide follow this steps:
Go to Plugins manager and install flutter plugin for vs code
After installing the plugin open the app folder
Goto run and choose the Start Debugging option
Select your Emulator for running the application
Accept the firewall permission
After Accepting the policies your application run in emulator after sometime
You can run your android code to this ide
Thankyou !