Comment on page
Environment Setup
Installation:
Mac:
Extract the file in the desired location, for example:
cd ~/development
unzip ~/Downloads/flutter_macos_2.10.5-stable.zip
Add the
flutter
tool to your path:export PATH="$PATH:`pwd`/flutter/bin"
This command sets your
PATH
variable for the current terminal window only. To permanently add Flutter to your path, see Update your path.Windows:
Extract the zip file and place the contained flutter in the desired installation location for the Flutter SDK (for example, C:\src\flutter).
Warning: Do not install Flutter to a path that contains special characters or spaces.
Warning: Do not install Flutter in a directory like
C:\Program Files\
that requires elevated privileges.Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the
-v
flag):flutter doctor
This command checks your environment and displays a report to the terminal window. The Dart SDK is bundled with Flutter; it is not necessary to install Dart separately. Check the output carefully for other software you might need to install or further tasks to perform
For example:
[-] Android toolchain - develop for Android devices
• Android SDK at /Users/obiwan/Library/Android/sdk
✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ
• Try re-installing or updating your Android SDK, visit https://docs.flutter.dev/setup/#android-setup for detailed instructions.
Last modified 1yr ago