Contents
Use fvm version to install and activate a version of Flutter. $ fvm 1.2.1 $ fvm 0.11.13 $ fvm stable $ fvm beta If version has already been installed, fvm will activate it from cache without having to download and set up again. Lists all currently installed versions $ fvm v1.2.1 v0.11.13 master stable. Install Flutter and get started. Downloads available for Windows, macOS, Linux, and Chrome OS operating systems. Flutter 0.2.1-dev 53 Saturday, April 27, 2019 Exempted flutter 0.2.0-dev 38 Saturday, April 27, 2019 Exempted flutter 0.1.9-dev 42 Saturday, April 27, 2019 Exempted flutter 0.1.8-dev 40 Saturday, April 27, 2019 Exempted. Imac does not recognize cd.
- Get the Flutter SDK
- Android setup
System requirements
To install and run Flutter,your development environment must meet these minimum requirements:
- Operating Systems: Windows 7 SP1 or later (64-bit), x86-64 based
- Disk Space: 1.32 GB (does not include disk space for IDE/tools).
- Tools: Flutter depends on these tools being available in your environment.
- Windows PowerShell 5.0 or newer (this is pre-installed with Windows 10)
Git for Windows 2.x, with theUse Git from the Windows Command Prompt option. Update to os x 10 8 4.
If Git for Windows is already installed, make sure you can run
git
commands from the command prompt or PowerShell.
Get the Flutter SDK
Download the following installation bundle to get the lateststable release of the Flutter SDK:
For other release channels, and older builds, see theSDK releases page.
Extract the zip file and place the contained
flutter
in the desired installation location for the Flutter SDK(for example,C:srcflutter
). https://the-cracker-factorydownloadtiny.peatix.com.
Warning: Do not install Flutter in a directory like C:Program Files
that requires elevated privileges.
If you don't want to install a fixed version of the installation bundle, you can skip steps 1 and 2. Instead, get the source code from the Flutter repo on GitHub, and change branches or tags as needed. For example:
You are now ready to run Flutter commands in the Flutter Console.
Update your path
If you wish to run Flutter commands in the regular Windows console,take these steps to add Flutter to the PATH
environment variable:
- 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
flutterbin
using;
as a separator from existing values. - If the entry doesn't exist,create a new user variable named
Path
withthe full path toflutterbin
as its value.
- If the entry exists, append the full path to
You have to close and reopen any existing console windowsfor these changes to take effect.
Note: As of Flutter's 1.19.0 dev release, the Flutter SDK contains the dart
command alongside the flutter
command so that you can more easily run Dart command-line programs. Downloading the Flutter SDK also downloads the compatible version of Dart, but if you've downloaded the Dart SDK separately, make sure that the Flutter version of dart
is first in your path, as the two versions might not be compatible. The following command (on macOS, linux, and chrome OS), tells you whether the flutter
and dart
commands originate from the same bin
directory and are therefore compatible. (Some versions of Windows support a similar where
command.)
As shown above, the two commands don't come from the same bin
directory. Update your path to use commands from /path-to-flutter-sdk/bin
before commands from /usr/local/bin
(in this case). After updating your shell for the change to take effect, running the which
or where
command again should show that the flutter
and dart
commands now come from the same directory.
To learn more about the dart
command, run dart -h
from the command line, or see the dart tool page.
Run flutter doctor
From a console window that has the Flutter directory in thepath (see above), run the following command to see if thereare any platform dependencies you need to complete the setup:
This command checks your environment and displays a report of the statusof your Flutter installation. Check the output carefully for othersoftware you might need to install or further tasks to perform(shown in bold text).
For example:
The following sections describe how to perform these tasks andfinish the setup process. Once you have installed any missingdependencies, you can run the flutter doctor
command again toverify that you've set everything up correctly.
Note: If flutter doctor
returns that either the Flutter plugin or Dart plugin of Android Studio are not installed, move on to Set up an editor to resolve this issue.
Warning: The flutter
tool uses Google Analytics to anonymously report feature usage statistics and basic crash reports. This data is used to help improve Flutter tools over time.
Flutter tool analytics are not sent on the very first run. To disable reporting, type flutter config --no-analytics
. To display the current setting, type flutter config
. If you opt out of analytics, an opt-out event is sent, and then no further information is sent by the Flutter tool.
By downloading the Flutter SDK, you agree to the Google Terms of Service. Note: The Google Privacy Policy describes how data is handled in this service.
Moreover, Flutter includes the Dart SDK, which may send usage metrics and crash reports to Google.
Android setup
https://xp-torrentplay-for-netflix-2-5-1-download-free.peatix.com. Note: Flutter relies on a full installation of Android Studio to supply its Android platform dependencies. However, you can write your Flutter apps in a number of editors; a later step discusses that.
Install Android Studio
- Download and install Android Studio.
- Start Android Studio, and go through the ‘Android Studio Setup Wizard'.This installs the latest Android SDK, Android SDK Command-line Tools,and Android SDK Build-Tools, which are required by Flutterwhen developing for Android.
The following sections describe how to perform these tasks andfinish the setup process. Once you have installed any missingdependencies, you can run the flutter doctor
command again toverify that you've set everything up correctly.
Note: If flutter doctor
returns that either the Flutter plugin or Dart plugin of Android Studio are not installed, move on to Set up an editor to resolve this issue.
Warning: The flutter
tool uses Google Analytics to anonymously report feature usage statistics and basic crash reports. This data is used to help improve Flutter tools over time.
Flutter tool analytics are not sent on the very first run. To disable reporting, type flutter config --no-analytics
. To display the current setting, type flutter config
. If you opt out of analytics, an opt-out event is sent, and then no further information is sent by the Flutter tool.
By downloading the Flutter SDK, you agree to the Google Terms of Service. Note: The Google Privacy Policy describes how data is handled in this service.
Moreover, Flutter includes the Dart SDK, which may send usage metrics and crash reports to Google.
Android setup
https://xp-torrentplay-for-netflix-2-5-1-download-free.peatix.com. Note: Flutter relies on a full installation of Android Studio to supply its Android platform dependencies. However, you can write your Flutter apps in a number of editors; a later step discusses that.
Install Android Studio
- Download and install Android Studio.
- Start Android Studio, and go through the ‘Android Studio Setup Wizard'.This installs the latest Android SDK, Android SDK Command-line Tools,and Android SDK Build-Tools, which are required by Flutterwhen developing for Android.
Set up your Android device
Install Flutter Mac
To prepare to run and test your Flutter app on an Android device,you need an Android device running Android 4.1 (API level 16) or higher.
- Enable Developer options and USB debugging on your device.Detailed instructions are available in theAndroid documentation.
- Windows-only: Install the Google USBDriver.
- Using a USB cable, plug your phone into your computer. If prompted on yourdevice, authorize your computer to access your device.
- In the terminal, run the
flutter devices
command to verify thatFlutter recognizes your connected Android device. By default,Flutter uses the version of the Android SDK where youradb
tool is based. If you want Flutter to use a different installationof the Android SDK, you must set theANDROID_SDK_ROOT
environmentvariable to that installation directory.
Check Flutter Version
Set up the Android emulator
Install Flutter Linux
To prepare to run and test your Flutter app on the Android emulator,follow these steps:
- EnableVM accelerationon your machine.
- Launch Android Studio, click the AVD Managericon, and select Create Virtual Device…
- In older versions of Android Studio, you should insteadlaunch Android Studio > Tools > Android > AVD Manager and selectCreate Virtual Device…. (The Android submenu is only presentwhen inside an Android project.)
- If you do not have a project open, you can choose Configure > AVD Manager and select Create Virtual Device…
- Choose a device definition and select Next.
- Select one or more system images for the Android versions you wantto emulate, and select Next.An x86 or x86_64 image is recommended.
- Under Emulated Performance, select Hardware - GLES 2.0 to enablehardwareacceleration.
3d rendering mac. Verify the AVD configuration is correct, and select Finish.
For details on the above steps, see ManagingAVDs.
- In Android Virtual Device Manager, click Run in the toolbar.The emulator starts up and displays the default canvas for yourselected OS version and device.
Web setup
Flutter Install Windows
Flutter has early support for building web applications using thebeta
channel of Flutter. To add support for web development, followthese instructions when you've completed the setup above.
Next step
Set up your preferred editor.