How to install Flutter in VsCode and run Android Emulator [Full Stack 2020]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Welcome Back! In this section, I will show you how to build and develop a Flutter application with Visual Studio Code, as well as how to run an Android emulator. so go to flutter.dev and click Get Start to start downloading Flutter SDK here ,available for Windows, MacOS, Linux There are two ways to download Flutter SDK, click directly to download the .zip file and use the command prompt .So choose the way you want to download Flutter SDK Alternatively, you can download older versions of Flutter SDK the latest version was released on April 18, 2020, the version I'm using is the version released on February 12, 2020 so download and extract the .zip file Next you also need to download Android Studio to run the emulator, without it we cannot develop Flutter After you unzip the .zip Flutter SDK file you will see the flutter folder, then move it where you want. I already have the folder flutter ,so the next step was to set the environment variable to manipulate the command prompt Please copy this path then enter "Type here to search" to search for "view advanced system settings" Click environment variables At System variables find Path and click Edit To add a new environment variable, click New and paste path I already have environment variables for Flutter, so you just need to click OK to save because i've got environment variable for flutter so i won't save so go to the Visual Studio Code and start creating the first Flutter project with a Terminal Alright! Type the command "flutter create flutter_name_project" and press the Enter key It will take a few seconds to create Alright! All done! At this point just, copy and paste to manipulate your project with Terminal "flutter run" command will be used to start the flutter application with the emulator. So you need to start the emulator before running this command Let go to Android Studio and make sure Android Emulator is turned on in Android Studio click this button to create or run an Android emulator I created my emulator device ,so to run the emulator click the play button You will need to wait a while for it to start up Great! Because I created and ran Flutter earlier, it is saved in memory, so don't worry we'll change it. After the emulator has run, return to Visual Studio Code and enter the command "flutter run" We need to open this project folder in VsCode by entering the dot code It will then be opened with VsCode Great, this is exactly our project Well, we will install the plugin flutter, dart so that VsCode understands the code Enter flutter and then click Install, when installing flutter, dart will also be installed You can see that Dart has already been installed Well great, now we have these colorful code snippets In the lib directory is where you will create your own project I will now open Terminal to start building the application Now we will start running the flutter application with the emulator I will zoom out a bit to make it easier for you to see Enter This will take a few minutes so please be patient Great! press Ctrl + S to save, then just type r on Terminal, hot load feature will automatically reload your application at this red text is a guide for you to enter r to reload hot, enter R to restart if there is an error, ie rebuild enter r Next,I'll try with Hot Load I will do it with this paragraph At this message, just click Restart Pretty cool, this Hot Load feature is very fast In addition to wrapping code with Wrap just right click select Refactor or Ctrl + Shift + R There is an option here to help build the Flutter application faster and save time Thank you for watching the video, bye see you in the next video!
Info
Channel: ComputerBerry
Views: 296,076
Rating: undefined out of 5
Keywords:
Id: OlswAb-CV8k
Channel Id: undefined
Length: 9min 22sec (562 seconds)
Published: Sat May 02 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.