Get notifications on updates for this project. Get the SourceForge newsletter. Get newsletters and notices that include site news, special offers and exclusive discounts about IT products & services.
To install and run Flutter,your development environment must meet these minimum requirements:
bash
curl
git
2.xmkdir
rm
unzip
which
xz-utils
zip
test
command depends on this librarybeing available in your environment. libGLU.so.1
- provided by mesa packages such as libglu1-mesa
on Ubuntu/DebianDownload the following installation bundle to get the latest stable release of theFlutter SDK:
For other release channels, and older builds,see the SDK archive page.
Extract the file in the desired location, for example:
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:
Add the flutter
tool to your path:
This command sets your PATH
variable for the current terminal window only.To permanently add Flutter to your path, seeUpdate your path.
Optionally, pre-download development binaries:
The flutter
tool downloads platform-specific development binaries asneeded. For scenarios where pre-downloading these artifacts is preferable(for example, in hermetic build environments,or with intermittent network availability), iOSand Android binaries can be downloaded ahead of time by running:
For additional download options, see flutter help precache
.
You are now ready to run Flutter commands!
Note: To update an existing version of Flutter, see Upgrading Flutter.
Run the following command to see if there are any dependencies you need toinstall to complete the setup (for verbose output, add the -v
flag): Pc cooking timer downloads.
This command checks your environment and displays a report to the terminalwindow. The Dart SDK is bundled with Flutter; it is not necessary to installDart separately. Check the output carefully for other software you mightneed to install or further tasks to perform (shown in bold text).
For example:
The following sections describe how to perform these tasks and finish the setupprocess.
Once you have installed any missing dependencies, run the flutter doctor
command again to verify that you’ve set everything up correctly.
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 will be sent, and then no further information will be 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.
You can update your PATH variable for the current session atthe command line, as shown in Get the Flutter SDK.You’ll probably want to update this variable permanently,so you can run flutter
commands in any terminal session.
The steps for modifying this variable permanently forall terminal sessions are machine-specific.Typically you add a line to a file that is executedwhenever you open a new window. For example:
rc
file for your shell.For example, Linux uses the Bash shell by default,so edit $HOME/.bashrc
.If you are using a different shell, the file pathand filename will be different on your machine.Add the following line and change[PATH_TO_FLUTTER_GIT_DIRECTORY]
to bethe path where you cloned Flutter’s git repo:
source $HOME/.<rc file>
to refresh the current window,or open a new terminal window toautomatically source the file.Verify that the flutter/bin
directoryis now in your PATH by running:
Verify that the flutter
command is available by running:
In some cases, your distribution may not permanently acquirethe path when using the above directions. When this occurs,you can change the environment variables file directly.These instructions require administrator privileges:
Determine the directory where you placed the Flutter SDK.
Locate the etc
directory at the root of the system,and open the profile
file with root privileges.
Update the PATH string with the location of yourFlutter SDK directory.
Once you start a new session, verify that theflutter
command is available by running:
For more details on setting the path in Bash,see this StackExchange question.For information on setting the path in Z shell,see this StackOverflow question.
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 will discuss that.
Warning: In Android Studio 3.6 or later, you need to manually add the old version of the Android SDK Tools for Flutter to work. To do this:
The dialog below shows the appropriate settings:
This is a known issue that will be addressed in an upcoming version of Flutter.
To prepare to run and test your Flutter app on an Android device,you’ll need an Android device running Android 4.1 (API level 16) or higher.
flutter devices
command to verify thatFlutter recognizes your connected Android device. By default,Flutter uses the version of the Android SDK where your adb
tool is based. If you want Flutter to use a different installationof the Android SDK, you must set the ANDROID_HOME
environmentvariable to that installation directory.To prepare to run and test your Flutter app on the Android emulator,follow these steps:
Verify the AVD configuration is correct, and select Finish.
For details on the above steps, see ManagingAVDs.
Note: As of 1.12, Flutter has early support for running web applications, but you need to be running the beta channel of Flutter. If you experience a problem that hasn’t yet been reported, please file an issue and make sure that “web” appears in the title.
To prepare to run, test, and debug your Flutter app on the web,you must install Chrome, if you haven’t already.
Set up your preferred editor.