Skip to content

Commit 11e8167

Browse files
committed
Merge pull request #163 from Hixie/revert-dart
Revert "Dart SDK is no longer required, we predownload it"
2 parents 22345e3 + 32cf812 commit 11e8167

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

getting-started.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,42 @@ permalink: /getting-started/
66
---
77

88
Flutter currently supports developers on Mac and Linux (64-bit).
9-
Windows support is planned but currently incomplete.
9+
Windows support is planned.
1010

11-
## Dependencies
11+
## Setting up your environment
1212

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

15-
* bash, mkdir, rm
16-
* git
17-
* curl
18-
* unzip
15+
To get started, you need to install the Dart SDK.
16+
Flutter requires Dart SDK 1.12.2 or greater.
17+
18+
To install the [Dart SDK](https://www.dartlang.org/downloads/):
19+
20+
- Mac:
21+
- `brew tap dart-lang/dart && brew install dart`, or, if you don't use
22+
homebrew, grab the [latest stable channel build](https://www.dartlang.org/downloads/archive/)
23+
- Linux: See [www.dartlang.org/downloads/linux.html](https://www.dartlang.org/downloads/linux.html)
24+
- Windows: Stay tuned, Windows support is planned.
25+
26+
### Checking your PATH
27+
28+
Ensure that the `pub` executable is in your `PATH`.
29+
30+
Run `pub --version` on the command line. If that command
31+
is not found, you will need to add `DIRECTORY_WHERE_DART_SDK_IS_LOCATED/bin`
32+
to your PATH.
33+
34+
For example:
35+
36+
```
37+
$ export PATH=<DART_SDK_DOWNLOAD_LOCATION>/bin:$PATH
38+
```
1939

2040
## Getting the Flutter code
2141

2242
Clone the `alpha` branch from the Flutter repository:
2343

24-
```bash
44+
```
2545
$ git clone https://github.com/flutter/flutter.git -b alpha
2646
```
2747

@@ -33,13 +53,14 @@ the `flutter` command.)
3353
## Configuring your PATH
3454

3555
After you clone the Flutter repo, set the PATH so you can
36-
use our scripts and tools.
56+
use our scripts and tools.
3757

38-
`export PATH=` _directory where you cloned the flutter repo_ `/bin:$PATH`
58+
```
59+
$ cd <directory where you cloned the flutter repo>
60+
$ export PATH=`pwd`/bin:$PATH
61+
```
3962

40-
Open a new shell and run `flutter --version` to ensure the `flutter` command is on your PATH.
41-
The first time you do this will take a few seconds as Flutter will first download the Dart SDK then precompile itself.
42-
Subsequent runs should be much faster.
63+
Run `flutter --version` to ensure the `flutter` command is on your PATH.
4364

4465
## Creating your first sample app
4566

0 commit comments

Comments
 (0)