Skip to content

Dart SDK is no longer required, we predownload it #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 12 additions & 33 deletions getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,22 @@ permalink: /getting-started/
---

Flutter currently supports developers on Mac and Linux (64-bit).
Windows support is planned.
Windows support is planned but currently incomplete.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flutter/flutter#138 if you want it.


## Setting up your environment
## Dependencies

### Downloading and installing the Dart SDK
Flutter depends on the following tools being available in your environment. These are commonly already available on Mac and Linux.

To get started, you need to install the Dart SDK.
Flutter requires Dart SDK 1.12.2 or greater.

To install the [Dart SDK](https://www.dartlang.org/downloads/):

- Mac:
- `brew tap dart-lang/dart && brew install dart`, or, if you don't use
homebrew, grab the [latest stable channel build](https://www.dartlang.org/downloads/archive/)
- Linux: See [www.dartlang.org/downloads/linux.html](https://www.dartlang.org/downloads/linux.html)
- Windows: Stay tuned, Windows support is planned.

### Checking your PATH

Ensure that the `pub` executable is in your `PATH`.

Run `pub --version` on the command line. If that command
is not found, you will need to add `DIRECTORY_WHERE_DART_SDK_IS_LOCATED/bin`
to your PATH.

For example:

```
$ export PATH=<DART_SDK_DOWNLOAD_LOCATION>/bin:$PATH
```
* bash, mkdir, rm
* git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first time you type 'git' on mac, it shows a dialog about the command-line developer tools. Unclear if we need to walk people through this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screen shot 2016-02-16 at 10 48 00 am

* curl
* unzip

## Getting the Flutter code

Clone the `alpha` branch from the Flutter repository:

```
```bash
$ git clone https://github.com/flutter/flutter.git -b alpha
```

Expand All @@ -55,12 +35,11 @@ the `flutter` command.)
After you clone the Flutter repo, set the PATH so you can
use our scripts and tools.

```
$ cd <directory where you cloned the flutter repo>
$ export PATH=`pwd`/bin:$PATH
```
`export PATH=` _directory where you cloned the flutter repo_ `/bin:$PATH`

Run `flutter --version` to ensure the `flutter` command is on your PATH.
Open a new shell and run `flutter --version` to ensure the `flutter` command is on your PATH.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flutter --version
Updating flutter tool...
/Users/ericseidel/flutter/bin/flutter: line 21: pub: command not found

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I'm not supposed to be on alpha? Moved to flutter/flutter@7a2c38a and i'm continuing OK.

The first time you do this will take a few seconds as Flutter will first download the Dart SDK then precompile itself.
Subsequent runs should be much faster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flutter will only need to do these steps after subsequent flutter upgrade commands?


## Creating your first sample app

Expand Down