development:tools:flutter_development_machine:flutter:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
development:tools:flutter_development_machine:flutter:start [2021/07/22 15:41] – created roy.leedevelopment:tools:flutter_development_machine:flutter:start [2021/07/22 16:21] (current) roy.lee
Line 2: Line 2:
  
 Install Flutter from [[https://flutter.dev/docs/get-started/install | Install - Flutter]] Install Flutter from [[https://flutter.dev/docs/get-started/install | Install - Flutter]]
 +
 +===== Windows Installation =====
 +==== Extracting Flutter ====
 +
 +It is recommended to place the extracted flutter the zip file in the folder where all your projects will be.
 +
 +==== Updating your path ====
 +
 +Determine the path of your clone of the Flutter SDK. 
 +i.e. ''C:\Users\<your-user-name>\Documents\Develop\Flutter\bin''
 +
 +  * From the Start search bar, enter ‘env’ and select Edit environment variables for your account.
 +  * Under User variables check if there is an entry called Path:
 +     * If the entry exists, append the full path to flutter\bin using ; as a separator from existing values.
 +     * If the entry doesn’t exist, create a new user variable named Path with the full path to flutter\bin as its value.
 +
 +You have to close and reopen any existing console windows for these changes to take effect.
 +
 +==== Run flutter doctor ====
 +From a console window that has the Flutter directory in the path, run the command ''flutter doctor''
 +
 +The command checks your environment and displays a report of your flutter installation. Please read the output and solve any issues that may appear.
 +
 +You may read more on this at [[https://flutter.dev/docs/get-started/install/windows#run-flutter-doctor|Windows Run flutter doctor - Flutter]]
 +
 +===== Mac Installation =====
 +==== Extracting Flutter ====
 +
 +It is recommended to place the extracted flutter the zip file in the folder where all your projects will be.
 +
 +==== Updating your path ====
 +
 +Determine the path of your clone of the Flutter SDK. 
 +i.e. ''~/Documents/Develop/flutter/bin''
 +
 +  * Type echo $SHELL in your terminal to determine the shell you are using.
 +    * If you are using Bash, create or edit $HOME/.bash_profile or $HOME/.bashrc
 +    * If you are using Z shell, create or edit $HOME/.zshrc
 +  * Add the following to your rc file, where [PATH_OF_FLUTTER_GIT_DIRECTORY] is the path of your clone of the Flutter SDK
 +<code>
 +export PATH="$PATH:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin"
 +</code>
 +  * Run ''source $HOME/.<rc file>'' to refresh the current window, or open a new terminal window to automatically source the file.
 +
 +
 +==== Run flutter doctor ====
 +From a console window that has the Flutter directory in the path, run the command ''flutter doctor''
 +
 +The command checks your environment and displays a report of your flutter installation. Please read the output and solve any issues that may appear.
 +
 +You may read more on this at [[https://flutter.dev/docs/get-started/install/macos#run-flutter-doctor|MacOS Run flutter doctor - Flutter]]
  • development/tools/flutter_development_machine/flutter/start.1626939710.txt.gz
  • Last modified: 2021/07/22 15:41
  • by roy.lee