{"id":172,"date":"2025-07-23T07:43:04","date_gmt":"2025-07-23T07:43:04","guid":{"rendered":"https:\/\/documentation.iqonic.design\/prokit-flutter\/?p=172"},"modified":"2025-07-23T08:04:32","modified_gmt":"2025-07-23T08:04:32","slug":"how-to-setup-flutter-environment","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/how-to-setup-flutter-environment\/","title":{"rendered":"How to setup Flutter Environment"},"content":{"rendered":"<div class=\"nolwrap\">\n<p><strong>\ud83d\udd52 Estimated Reading:<\/strong>&nbsp;2 Minutes<strong><br>\ud83d\udcc2&nbsp;Location:&nbsp;<\/strong>FAQs \u2192 App FAQs \u2192 How to Setup Flutter Environment<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf0 Setup Flutter Environment for Your System<\/h3>\n\n\n\n<p>To install and set up Flutter, follow the steps below based on your operating system (Windows, macOS, Linux).<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Step 1: Install Flutter SDK<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download the\u00a0<a href=\"https:\/\/docs.flutter.dev\/install\/archive\" target=\"_blank\" rel=\"noopener\">Flutter SDK<\/a>\u00a0based on your operating system.<\/li>\n\n\n\n<li>Extract the downloaded ZIP file.<\/li>\n<\/ol>\n\n\n\n<p>\ud83d\udca1&nbsp;<strong>TIP:<\/strong>&nbsp;To manage multiple Flutter versions easily, follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a folder named\u00a0<strong>flutter_sdk<\/strong><\/li>\n\n\n\n<li>Extract the ZIP into the\u00a0<strong>flutter_sdk<\/strong>\u00a0folder<\/li>\n\n\n\n<li>Rename the extracted folder to something like\u00a0<strong>flutter_3_27_0<\/strong><\/li>\n\n\n\n<li>Copy the path to the\u00a0<strong>bin<\/strong>\u00a0directory (Right-click on\u00a0<code>bin<\/code>\u00a0&gt; Properties or Info to get full path)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2699\ufe0f Step 2: Add SDK Path to Your Environment<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\ude9f For Windows:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Start Menu \u2192 Search \u201c<strong>Edit Environment variables for your account<\/strong>\u201d.<\/li>\n\n\n\n<li>Find the\u00a0<strong>Path<\/strong>\u00a0variable \u2192 Click \u201cEdit\u201d (or create a new one named\u00a0<code>Path<\/code>).<\/li>\n\n\n\n<li>Paste the path to your Flutter\u00a0<strong>bin<\/strong>\u00a0directory.<\/li>\n\n\n\n<li>Click \u201c<strong>OK<\/strong>\u201d on all windows to save changes.<\/li>\n\n\n\n<li>Open Command Prompt and run:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">flutter doctor<\/pre>\n\n\n\n<p>This verifies if Flutter is now accessible globally.<\/p>\n\n\n\n<p>\u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udf4e For macOS\/Linux:<\/h3>\n\n\n\n<p>1. Open Terminal: Launch the Terminal application on your&nbsp;<strong>macOS<\/strong>&nbsp;or&nbsp;<strong>Linux system.<\/strong><\/p>\n\n\n\n<p>2. Navigate to Home Directory: You can navigate to your home directory by typing \u201c<code>cd ~<\/code>\u201d and pressing Enter.<\/p>\n\n\n\n<p>3. Open or Create the Configuration File: Use a text editor like \u201c<strong>Nano<\/strong>\u201d or \u201c<strong>Vim<\/strong>\u201d to open or create the .bashrc or .zshrc file. For example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano ~\/.bashrc  # For Bash<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">nano ~\/.zshrc   # For Z shell (zsh)<\/pre>\n\n\n\n<p>4. Add Flutter to PATH: Add the following line at the end of the file, replacing&nbsp;[PATH_TO_FLUTTER_BIN]&nbsp;with the actual path to the Flutter bin directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export PATH=\"$PATH:[PATH_TO_FLUTTER_BIN]\"<\/pre>\n\n\n\n<p>For example, if Flutter is located in your home directory under a folder named flutter_3_27_0, the line would look like this:<\/p>\n\n\n\n<p>export PATH=\u201d$PATH:$HOME\/flutter_sdk\/flutter_3_27_0\/bin\u201d<\/p>\n\n\n\n<p>5. Save Changes: Save the changes you made to the file. In Nano, you can do this by pressing Ctrl + X, then Y to confirm, and finally Enter to<strong>&nbsp;save<\/strong>.<\/p>\n\n\n\n<p>6. Apply Changes: To apply the changes to the current Terminal session, run:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source ~\/.bashrc  # For Bash<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">source ~\/.zshrc   # For Z shell (zsh)<\/pre>\n\n\n\n<p>7. Open a new terminal and run:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">flutter doctor<\/pre>\n\n\n\n<p>This checks whether Flutter is working globally<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udd52 Estimated Reading:&nbsp;2 Minutes\ud83d\udcc2&nbsp;Location:&nbsp;FAQs \u2192 App FAQs \u2192 How to Setup Flutter Environment \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 \u2013 [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":170,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-172","post","type-post","status-publish","format-standard","hentry","category-prokit-flutter"],"featured_image_src":null,"author_info":{"display_name":"flutteradminiq","author_link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/author\/flutteradminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":2,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/172\/revisions\/184"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/170"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}