<?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: Faisal Jan</title>
    <description>The latest articles on DEV Community by Faisal Jan (@faisaljanb).</description>
    <link>https://dev.to/faisaljanb</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%2F1831758%2Fc5176e39-a207-4b53-9e83-bee016f69435.png</url>
      <title>DEV Community: Faisal Jan</title>
      <link>https://dev.to/faisaljanb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/faisaljanb"/>
    <language>en</language>
    <item>
      <title>Create a Flutter project for specific platforms in VS Code</title>
      <dc:creator>Faisal Jan</dc:creator>
      <pubDate>Fri, 30 May 2025 07:14:46 +0000</pubDate>
      <link>https://dev.to/faisaljanb/create-a-flutter-project-for-specific-platforms-in-vs-code-3cc5</link>
      <guid>https://dev.to/faisaljanb/create-a-flutter-project-for-specific-platforms-in-vs-code-3cc5</guid>
      <description>&lt;p&gt;Undoubtedly, Flutter is a great choice for developing cross-platform applications. It supports app development for Android, iOS, macOS, Windows, Linux, and Web. Creating a Flutter project with &lt;code&gt;flutter create&lt;/code&gt; generates a project with support for all these platforms, which is not always intended.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6om6abs8bxa4q16ot7bi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6om6abs8bxa4q16ot7bi.png" alt="Flutter project for all platforms" width="620" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Especially when you want to build for just one or two platforms. For instance, many times I only want to create a mobile app for Android that I can use myself (or maybe I can't deploy it on the iOS App Store because of $100 a year 😁).&lt;/p&gt;

&lt;p&gt;Subsequently, I would want a clean project structure with only the &lt;code&gt;android&lt;/code&gt; folder or one that I want. But, there is no way to do that in my favorite IDE, VS Code. I know, I can delete those folders after its initialization. What if I could avoid adding them at the start?&lt;/p&gt;

&lt;p&gt;Thankfully, after Flutter 3, we can now use the following command to generate for specific platforms, such as Android, iOS, or even both.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flutter create [project_name] --platforms=android,ios
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This way, you can make a project with particular platform support. However, if you are like me and addicted to Command Palette and don't like writing them in the terminal, you can install the &lt;a href="https://marketplace.visualstudio.com/items?itemName=Faisaljan.flutter-platforms-customizer" rel="noopener noreferrer"&gt;&lt;code&gt;Flutter Platforms Customizer&lt;/code&gt;&lt;/a&gt; extension to achieve this task.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F41gzo9u9fas7xw1hrhwr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F41gzo9u9fas7xw1hrhwr.png" alt="flutter new project with choosing platforms" width="800" height="179"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, whenever you type &lt;code&gt;Ctrl+Shift+P&lt;/code&gt; and search for &lt;code&gt;Flutter: New project&lt;/code&gt;, you will get a new command for choosing platforms. You need to select only those platforms you want to develop your project for.&lt;/p&gt;

&lt;p&gt;That's all in this guide. If you still experience issues with any task, please feel free to let me know. I will do my best to respond as quickly as possible. Thank you for your time, and have a great day.&lt;/p&gt;

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