<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fredson Costa Rodrigues</title>
    <description>The latest articles on DEV Community by Fredson Costa Rodrigues (@fredcrodrigues).</description>
    <link>https://dev.to/fredcrodrigues</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1047604%2F69b9da2e-846d-409c-b56b-87705712502b.jpeg</url>
      <title>DEV Community: Fredson Costa Rodrigues</title>
      <link>https://dev.to/fredcrodrigues</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fredcrodrigues"/>
    <language>en</language>
    <item>
      <title>Setting and Installation Flutter in VS Code</title>
      <dc:creator>Fredson Costa Rodrigues</dc:creator>
      <pubDate>Mon, 20 Mar 2023 21:04:41 +0000</pubDate>
      <link>https://dev.to/fredcrodrigues/setting-and-installation-flutter-in-vs-code-1gnd</link>
      <guid>https://dev.to/fredcrodrigues/setting-and-installation-flutter-in-vs-code-1gnd</guid>
      <description>&lt;p&gt;Hello everyone, how's it going? I've had a bit of trouble configuring my environment with Flutter in VS Code. So, I decided to share what helped me here. Are you ready?&lt;/p&gt;

&lt;p&gt;We'll be going through three steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1 - Installing Flutter&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;2 - Installing Android Studio&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;3 - Installing VS CODE&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Flutter
&lt;/h2&gt;

&lt;p&gt;First, go to the website of &lt;a href="https://docs.flutter.dev/get-started/install"&gt;Flutter&lt;/a&gt; and select your operating system. In my case I will select Windows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SIPiiVTd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a7385p4p640x62bk8rva.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SIPiiVTd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a7385p4p640x62bk8rva.png" alt="Select operating system" width="772" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now download the file zip and after create a new folder called src in your  &lt;strong&gt;C:&lt;/strong&gt; and unzip these file. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7B4PrjIe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7m9j1nfqd39t7p7gvqr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7B4PrjIe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7m9j1nfqd39t7p7gvqr.png" alt="File to download" width="748" height="140"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your path should look like this::&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;c:\src\flutter&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Got it? Perfect!?. Now, let's create an environment variable with the path of your Flutter installation on your machine.&lt;/p&gt;

&lt;p&gt;To create the environment variable, follow these steps:&lt;/p&gt;

&lt;p&gt;1 - Access the properties of your operating system&lt;br&gt;
2 - Click on advanced settings&lt;br&gt;
3 - Select variable of environment&lt;br&gt;
4 - Click on "PATH", after click on "NEW" and paste the path of flutter path of flutter "&lt;strong&gt;c:\src\flutter\bin&lt;/strong&gt;"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kaXx-22g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxhbiu5uxwilpx5l3yf9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kaXx-22g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxhbiu5uxwilpx5l3yf9.png" alt="Enviroment" width="880" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To test if Flutter is working, you need to open the terminal and type the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flutter doctor&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Look at the image below. You need to verify that everything is configured as the flutter requests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dmMoRCka--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7i7qbilzamibcetaiqhs.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dmMoRCka--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7i7qbilzamibcetaiqhs.jpeg" alt="Requests" width="880" height="322"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Done! You have successfully installed Flutter! 😆&lt;/p&gt;

&lt;p&gt;❗️❗️ However, please note that you need to install all configuration requirements for Flutter, so please pay close attention.  ❗️❗️&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Android Studio
&lt;/h2&gt;

&lt;p&gt;Now, let's install Android Studio. Access the &lt;a href="https://developer.android.com/studio"&gt;Website&lt;/a&gt; to download. After downloading the executable file, follow these steps:&lt;/p&gt;

&lt;p&gt;1 - Uncheck the 'Android Virtual Device' option and click &lt;em&gt;Next&lt;/em&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--55v9WjQO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/03u047t85q7j2ed2a9cy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--55v9WjQO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/03u047t85q7j2ed2a9cy.png" alt="Settings Android Studio" width="502" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2- Check the options as shown in the image below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TNtoPMYI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aim4s3ufbd583wlqthqv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TNtoPMYI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aim4s3ufbd583wlqthqv.png" alt="Settings Android Studio" width="782" height="572"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Done! Android Studio is now installed!&lt;/p&gt;

&lt;p&gt;Now, open the app and click on &lt;em&gt;Settings&lt;/em&gt;. Open the &lt;em&gt;SDK Manager&lt;/em&gt;. AThen, click on the  &lt;em&gt;SDK Tools&lt;/em&gt; tab and check if the  &lt;em&gt;Android SDK Plataform-Tools&lt;/em&gt; is installed. If it is not installed, check this option and perform the installation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mraOpPvL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/muirbzfbrfqb65chvo9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mraOpPvL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/muirbzfbrfqb65chvo9z.png" alt="Settings SDK" width="880" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;❗️❗️ Another configuration important is instalation do JDK. Verify if this installed in your machine. If it not this installed so click this &lt;a href="https://docs.oracle.com/en/java/javase/18/install/installation-jdk-microsoft-windows-platforms.html#GUID-E3C75F92-D3B2-421D-A9BE-933C15F7CD1B"&gt;link&lt;/a&gt;. Configure also the environment variable of JDK, so perform this step again. ❗️❗️&lt;/p&gt;

&lt;p&gt;Done! Android Studio Installed! 😆&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing VS Code
&lt;/h2&gt;

&lt;p&gt;The process of installing VS Code is easy. Click on &lt;a href="https://code.visualstudio.com/download"&gt;link&lt;/a&gt; to download it. Then, install the app normally.&lt;/p&gt;

&lt;p&gt;Let's configuration the flutter in vs code. Follow the steps below:&lt;/p&gt;

&lt;p&gt;1 - Open VS Code&lt;br&gt;
2 - Click on Extesion:&lt;br&gt;
 2.1 - Search to &lt;em&gt;flutter&lt;/em&gt; and install it.&lt;br&gt;
 2.2 - Search to &lt;em&gt;dart&lt;/em&gt; and install it.&lt;/p&gt;

&lt;p&gt;Done! Flutter is now configured in VS Code!&lt;/p&gt;

&lt;p&gt;❗️❗️ Oh, I just remembered something! This configuration helped me. I created a new environment for &lt;em&gt;Android SDK Platform-Tools&lt;/em&gt;, and the path should look like this: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;C:\your_user\your_user\AppData\Local\Android\Sdk\platform-tools&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;By doing this, Flutter worked for me and I was able to run the project in VS Code.&lt;/p&gt;

&lt;p&gt;Well, in my next post, I will show you how to configure the Android emulator in VS Code to test with Flutter. 😆😆&lt;/p&gt;

</description>
      <category>fluter</category>
      <category>vscode</category>
      <category>dart</category>
      <category>android</category>
    </item>
  </channel>
</rss>
