{"id":175,"date":"2025-02-20T06:46:34","date_gmt":"2025-02-20T06:46:34","guid":{"rendered":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/?p=175"},"modified":"2025-06-13T06:47:26","modified_gmt":"2025-06-13T06:47:26","slug":"how-to-setup-flutter-environment","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/how-to-setup-flutter-environment\/","title":{"rendered":"How to setup Flutter Environment"},"content":{"rendered":"<div class=\"nolwrap\">\n<h2 class=\"wp-block-heading\"><strong>Install Flutter SDK<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install&nbsp;<a href=\"https:\/\/docs.flutter.dev\/release\/archive\" target=\"_blank\" rel=\"noreferrer noopener\">Flutter SDK<\/a>&nbsp;depending on your OS.<\/li>\n\n\n\n<li>Extract the Zip.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>TIP<\/strong><\/h3>\n\n\n\n<p>To Keep Flutter SDK easily manageable we recommend few tips for Storing sdk.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create&nbsp;<strong>flutter_sdk<\/strong>&nbsp;folder.<\/li>\n\n\n\n<li>Extract the zip into the&nbsp;<strong>&#8220;flutter_sdk&#8221;<\/strong>&nbsp;directory.<\/li>\n\n\n\n<li>Rename the extracted directory with relevant flutter_version (i.e If you have installed flutter 3.22.0 than rename the directory as&nbsp;<strong>&#8220;flutter_3_22_0&#8221;<\/strong>)<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy the Flutter path to the bin directory. (i.e &#8211; Right Click on bin directory and open properties\/info, you can see the full path to Flutter &#8220;bin&#8221; directory)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Add SDK Path to your Environment<\/strong><\/h2>\n\n\n\n<p><strong>Windows<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open Search bar and Search for&nbsp;<strong>&#8220;Edit Environment variables for your account&#8221;<\/strong>.<\/li>\n\n\n\n<li>If &#8220;Path&#8221; variable exist in you environment variable than click on&nbsp;<strong>&#8220;Edit&#8221;<\/strong>&nbsp;else click on &#8220;New&#8221; and name the variable &#8220;Path&#8221;<\/li>\n\n\n\n<li>paste the Path to the Flutter bin directory into &#8220;Path&#8221; variable.<\/li>\n\n\n\n<li>Click &#8220;OK&#8221; on all windows to save the changes.<\/li>\n\n\n\n<li>Open a new command prompt window and run&nbsp;<code>flutter doctor<\/code>&nbsp;to verify that Flutter is now accessible from anywhere.<\/li>\n<\/ul>\n\n\n\n<p><strong>macOS and Linux<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open Terminal: Launch the Terminal application on your macOS or Linux system.<\/li>\n\n\n\n<li>Navigate to Home Directory: You can navigate to your home directory by typing &#8220;<code>cd ~<\/code>&#8221; and pressing Enter.<\/li>\n\n\n\n<li>Open or Create the Configuration File: Use a text editor like &#8220;Nano&#8221; or &#8220;Vim&#8221; to open or create the .bashrc or .zshrc file. For example:<\/li>\n<\/ul>\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<ul class=\"wp-block-list\">\n<li>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:<\/li>\n<\/ul>\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_22_0, the line would look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export PATH=\"$PATH:$HOME\/flutter_sdk\/flutter_3_22_0\/bin\"<\/pre>\n\n\n\n<p>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 save.<\/p>\n\n\n\n<p>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>Verify Flutter Installation: Open a new Terminal window or tab, and run&nbsp;<code>flutter doctor<\/code>&nbsp;to verify that Flutter is now accessible from anywhere.<\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Install Flutter SDK TIP To Keep Flutter SDK easily manageable we recommend few tips for Storing sdk. Add SDK Path to your Environment Windows macOS and Linux nano ~\/.bashrc # For Bash nano ~\/.zshrc # For Z shell (zsh) export PATH=&#8221;$PATH:[PATH_TO_FLUTTER_BIN]&#8221; For example, if Flutter is located in your home directory under a folder named [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"parent":173,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-kivilab"],"featured_image_src":null,"author_info":{"display_name":"","author_link":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/author\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":7,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":864,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/175\/revisions\/864"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/posts\/173"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivilab-laravel\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}