<?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: HAGTIC</title>
    <description>The latest articles on DEV Community by HAGTIC (@haythemgalelem).</description>
    <link>https://dev.to/haythemgalelem</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1283475%2F506d5fe5-fd94-49e3-ac6e-36eafae9e150.jpeg</url>
      <title>DEV Community: HAGTIC</title>
      <link>https://dev.to/haythemgalelem</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/haythemgalelem"/>
    <language>en</language>
    <item>
      <title>How to install several Flutter SDK</title>
      <dc:creator>HAGTIC</dc:creator>
      <pubDate>Sat, 17 Feb 2024 18:35:30 +0000</pubDate>
      <link>https://dev.to/haythemgalelem/how-to-install-several-flutter-sdk-3g11</link>
      <guid>https://dev.to/haythemgalelem/how-to-install-several-flutter-sdk-3g11</guid>
      <description>&lt;p&gt;To install multiple Flutter SDKs on your system, you can use Flutter version management tools. The most common tool for this purpose is flutter version.&lt;/p&gt;

&lt;p&gt;Here are the steps to install multiple Flutter SDKs:&lt;/p&gt;

&lt;p&gt;Install Flutter:&lt;br&gt;
If you haven't installed Flutter yet, you can do so by following the official installation guide: Flutter - Get Started.&lt;/p&gt;

&lt;p&gt;Install Dart SDK:&lt;br&gt;
Flutter requires Dart, so make sure Dart SDK is installed. Flutter usually comes bundled with the Dart SDK.&lt;/p&gt;

&lt;p&gt;Install Flutter Version Management Tool:&lt;br&gt;
Use a version management tool like flutter version to easily switch between different Flutter versions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flutter pub global activate fvm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure to add the Dart SDK binaries to your system's PATH. The command to add the binaries might look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export PATH="$PATH":"$HOME/.pub-cache/bin"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the above line to your shell profile (e.g., .bashrc or .zshrc) so that it persists across sessions.&lt;/p&gt;

&lt;p&gt;Initialize FVM:&lt;br&gt;
Run the following command to initialize FVM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fvm install [desired_flutter_version]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace [desired_flutter_version] with the version of Flutter you want to install. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fvm install 2.8.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use Flutter Version:&lt;br&gt;
Once installed, you can switch between Flutter versions using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fvm use [desired_flutter_version]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify Version:&lt;br&gt;
Confirm that you are using the desired Flutter version by running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flutter --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should reflect the version you installed with fvm.&lt;/p&gt;

&lt;p&gt;Repeat steps 4-6 for each Flutter version you want to install.&lt;/p&gt;

&lt;p&gt;Remember that Flutter projects specify their Flutter SDK version in the pubspec.yaml file. When switching between projects, it's a good practice to run flutter pub get to ensure the correct dependencies are installed for the specified Flutter version.&lt;/p&gt;

&lt;p&gt;This way, you can have multiple Flutter SDK versions installed on your machine and easily switch between them based on project requirements.&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
    </item>
  </channel>
</rss>
