@@ -6,22 +6,42 @@ permalink: /getting-started/
6
6
---
7
7
8
8
Flutter currently supports developers on Mac and Linux (64-bit).
9
- Windows support is planned but currently incomplete .
9
+ Windows support is planned.
10
10
11
- ## Dependencies
11
+ ## Setting up your environment
12
12
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
14
14
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
+ ```
19
39
20
40
## Getting the Flutter code
21
41
22
42
Clone the ` alpha ` branch from the Flutter repository:
23
43
24
- ``` bash
44
+ ```
25
45
$ git clone https://github.com/flutter/flutter.git -b alpha
26
46
```
27
47
@@ -33,13 +53,14 @@ the `flutter` command.)
33
53
## Configuring your PATH
34
54
35
55
After you clone the Flutter repo, set the PATH so you can
36
- use our scripts and tools.
56
+ use our scripts and tools.
37
57
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
+ ```
39
62
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.
43
64
44
65
## Creating your first sample app
45
66
0 commit comments