Skip to content

Commit 229c3e8

Browse files
author
Tony Sansone
committed
Update supported versions
1 parent 5ac42d8 commit 229c3e8

File tree

6 files changed

+251
-139
lines changed

6 files changed

+251
-139
lines changed

src/_sass/site.scss

+15-2
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ li.card {
553553
border-radius: 0;
554554
color: $site-color-body;
555555
margin-top: 1rem;
556-
padding: 30px 30px;
556+
padding: 1.5rem;
557557

558558
i.material-icons {
559559
font-size: 20px;
@@ -569,7 +569,7 @@ li.card {
569569
background-color: #00000010;
570570
}
571571

572-
p:last-child {
572+
p:last-child, li:last-child, ul:last-child, ol:last-child {
573573
margin-bottom: 0;
574574
}
575575

@@ -884,3 +884,16 @@ body.obsolete {
884884
}
885885
}
886886
}
887+
888+
/* -----------------------------------------
889+
Headings in boxes
890+
----------------------------------------- */
891+
892+
div h1:first-child,
893+
div h2:first-child,
894+
div h3:first-child,
895+
div h4:first-child,
896+
div h5:first-child,
897+
div h6:first-child {
898+
margin-top: 0rem;
899+
}

src/get-dart/_linux.md

+65-18
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,76 @@
1-
If you're using Debian/Ubuntu on AMD64 (64-bit Intel), you can choose one of the
2-
following options, both of which can update the SDK automatically when new
3-
versions are released.
41

5-
* [Install using apt-get](#install-using-apt-get)
6-
* [Install a Debian package](#install-a-debian-package)
72

8-
#### Install using apt-get
3+
### System requirements
4+
{: .no_toc}
95

10-
Perform the following **one-time setup**:
6+
Dart supports the following hardware architectures and platform versions
7+
to develop and run Dart code on Linux.
118

12-
```terminal
13-
$ sudo apt-get update
14-
$ sudo apt-get install apt-transport-https
15-
$ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
16-
$ echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
17-
```
9+
#### Hardware architecture
10+
{: .no_toc}
11+
12+
Dart supports 32-bit and 64-bit CPUs based on Intel and ARM
13+
(IA32, ARM, x64, and ARM64).
14+
Dart also supports RISC-V for its dev and beta channel releases.
15+
16+
#### Operating system flavor and version
17+
{: .no_toc}
18+
19+
Dart supports the [Debian stable][] and [Ubuntu LTS][] under standard support.
20+
21+
### Install using package manager
22+
{: .no_toc}
23+
24+
Choose to install either using [apt-get](#install-using-apt-get)
25+
or downloading a [`.deb`](#install-a-debian-package) package.
26+
27+
Both methods trigger an SDK update whenever Dart releases a new version.
28+
29+
#### Install using `apt-get`
30+
{: .no_toc}
31+
32+
Perform the following steps for the first install only.
33+
34+
1. Update the package index files and install the secure HTTP package.
1835

19-
Then install the Dart SDK:
36+
```terminal
37+
$ sudo apt-get update && sudo apt-get install apt-transport-https
38+
```
39+
40+
1. Download and add the Google Linux GPG public key.
41+
42+
```terminal
43+
$ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
44+
```
45+
46+
1. Add the Dart package repository to your Linux system.
47+
48+
```terminal
49+
$ echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
50+
```
51+
52+
Install the Dart SDK using [`sudo`][sudo].
2053

2154
```terminal
22-
$ sudo apt-get update
23-
$ sudo apt-get install dart
55+
$ sudo apt-get update && sudo apt-get install dart
2456
```
2557

2658
#### Install a Debian package
2759

28-
Alternatively, download Dart SDK [as a Debian package](#){:.debian-link-stable}
29-
in the `.deb` package format.
60+
To install the Dart SDK as a Debian package (`*.deb`).
61+
62+
1. Download the Dart SDK as a [Debian package](#){:.debian-link-stable}.
63+
64+
1. Install the `*.deb` package using one of two methods:
65+
66+
* From a GUI, double-click the `.deb` file.
67+
68+
* From a terminal, run the following command:
69+
70+
```terminal
71+
$ sudo dpkg -i dart_3.2.6-1_amd64.deb
72+
```
73+
74+
[sudo]: https://www.sudo.ws/
75+
[Debian stable]: https://www.debian.org/releases
76+
[Ubuntu LTS]: https://wiki.ubuntu.com/Releases

src/get-dart/_mac.md

+56-17
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,81 @@
1-
[Install Homebrew,](https://brew.sh)
2-
and then run the following commands:
1+
2+
### System requirements
3+
{: .no_toc}
4+
5+
Dart supports the following hardware architectures and platform versions
6+
to develop and run Dart code on macOS.
7+
8+
#### Hardware architecture
9+
{: .no_toc}
10+
11+
Dart supports 64-bit CPUs based on Intel and ARM: x64 and ARM64.
12+
13+
#### Operating system
14+
{: .no_toc}
15+
16+
Dart supports the latest three major versions of macOS.
17+
18+
As of November 2023, these include macOS 12 (Monterey), macOS 13 (Ventura),
19+
and macOS 14 (Sonoma).
20+
21+
### Install using Homebrew
22+
{: .no_toc}
23+
24+
To install the Dart SDK, use [Homebrew][].
25+
26+
Install Homebrew, then run the following commands.
327

428
```terminal
529
$ brew tap dart-lang/dart
630
$ brew install dart
731
```
832

9-
{{site.alert.important}}
10-
Make sure the **Homebrew `bin` directory is in your `PATH`**.
33+
### Verify PATH includes Homebrew
34+
{: .no_toc}
35+
36+
Verify that your `PATH` includes the **Homebrew `bin`.
1137
Setting up the path correctly makes it easier to use Dart SDK commands
12-
such as `dart run` and `dart format`.
13-
For help configuring your path,
38+
such as `dart run` and `dart format`.
39+
For help configuring your path,
1440
consult the [Homebrew FAQ.](https://docs.brew.sh/FAQ)
1541
{{site.alert.end}}
1642

43+
### Upgrade using Homebrew
44+
{: .no_toc}
45+
1746
To upgrade when a new release of Dart is available:
1847

1948
```terminal
2049
$ brew upgrade dart
2150
```
2251

23-
To switch between locally installed Dart releases,
24-
first install the version you want to switch to if you haven't.
25-
For example, to install Dart 2.12:
52+
### Switch Dart versions
53+
{: .no_toc}
2654

27-
```terminal
28-
$ brew install dart@2.12
29-
```
55+
To switch between locally installed Dart releases:
3056

31-
Then to switch between versions,
32-
unlink the current version and link the desired version.
57+
1. Install the version to which you want to switch.
3358

34-
```terminal
35-
$ brew unlink dart@<old> && brew unlink dart@<new> && brew link dart@<new>
36-
```
59+
For example, to install Dart 3.1:
60+
61+
```terminal
62+
$ brew install dart@3.1
63+
```
64+
65+
1. To switch between versions,
66+
unlink the current version and link the desired version.
67+
68+
```terminal
69+
$ brew unlink dart@<old> && brew unlink dart@<new> && brew link dart@<new>
70+
```
71+
72+
### List installed Dart versions
73+
{: .no_toc}
3774

3875
To see which versions of Dart you've installed:
3976

4077
```terminal
4178
$ brew info dart
4279
```
80+
81+
[Homebrew]: https://brew.sh

src/get-dart/_windows.md

+47-18
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,51 @@
1-
You can install the Dart SDK using [Chocolatey.][Chocolatey]
21

3-
{{site.alert.important}}
4-
These commands require administrator rights.
5-
Here's one way to open a Command Prompt window
6-
that has admin rights:
2+
### System requirements
3+
{: .no_toc}
74

8-
1. Press <kbd>Windows+R</kbd> to open the **Run** window.
9-
2. Type `cmd` into the box.
10-
3. Press <kbd>Ctrl+Shift+Enter</kbd>.
11-
{{site.alert.end}}
5+
Dart supports the following hardware architectures and platform versions
6+
to develop and run Dart code on Windows.
127

13-
To install the Dart SDK:
8+
#### Hardware architecture
9+
{: .no_toc}
10+
11+
Dart supports 32- and 64-bit CPUs based on Intel architecture
12+
(IA32, x64) and 64-bit CPUs based on ARM (ARM64).
13+
14+
#### Operating system
15+
{: .no_toc}
16+
17+
Dart supports 32-bit and 64-bit Windows 10 and Windows 11.
18+
19+
### Install using Chocolatey
20+
{: .no_toc}
21+
22+
To install the Dart SDK, use [Chocolatey][Chocolatey].
23+
Chocolatey requires [elevated permissions].
24+
25+
Install Chocolatey, then run a [command prompt] with elevated permissions.
1426

1527
```terminal
1628
C:\> choco install dart-sdk
1729
```
1830

19-
To upgrade the Dart SDK:
31+
### Change default install path
32+
{: .no_toc}
33+
34+
By default, Chocolatey installs the SDK at `C:\tools\dart-sdk`.
35+
To change that location, set the [`ChocolateyToolsLocation`][]
36+
environment variable to your desired installation directory.
37+
38+
### Verify your PATH includes Dart
39+
{: .no_toc}
40+
41+
Verify you can run Dart.
2042

2143
```terminal
22-
C:\> choco upgrade dart-sdk
44+
C:\> dart --version
45+
Dart SDK version: 3.2.4 (stable) (Thu Dec 21 19:13:53 2023 +0000) on "win_x64"
2346
```
2447

25-
By default, the SDK is installed at `C:\tools\dart-sdk`.
26-
You can change that location by setting
27-
the [`ChocolateyToolsLocation`][] environment variable
28-
to your chosen installation directory.
29-
30-
If you can't use the Dart SDK executables,
48+
If your development machine doesn't return a Dart version,
3149
add the SDK location to your PATH:
3250

3351
1. In the Windows search box, type `env`.
@@ -38,5 +56,16 @@ add the SDK location to your PATH:
3856
6. In each window that you just opened,
3957
click **Apply** or **OK** to dismiss it and apply the path change.
4058

59+
### Upgrade using Chocolatey
60+
{: .no_toc}
61+
62+
To upgrade the Dart SDK:
63+
64+
```terminal
65+
C:\> choco upgrade dart-sdk
66+
```
67+
68+
[elevated permissions]: https://www.thewindowsclub.com/elevated-privileges-windows
69+
[command prompt]: https://www.thewindowsclub.com/how-to-run-command-prompt-as-an-administrator
4170
[Chocolatey]: https://chocolatey.org
4271
[`ChocolateyToolsLocation`]: https://stackoverflow.com/questions/19752533/how-do-i-set-chocolatey-to-install-applications-onto-another-drive/68314437#68314437

src/get-dart/archive/_sdk-terms.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Dart tools may send usage metrics and crash reports to Google.
2-
By downloading the Dart SDK, you agree to the
1+
Dart tools might send usage metrics and crash reports to Google.
2+
If you download the Dart SDK, you agree to the
33
[Google Terms of Service.](https://policies.google.com/terms)
4-
Note: The [Google Privacy Policy](https://policies.google.com/privacy)
5-
describes how data is handled in this service.
4+
To learn how Dart handles this data,
5+
consult the [Google Privacy Policy](https://policies.google.com/privacy).
66

7-
To control the submission of metrics, use the following options on the
7+
To toggle data collection, use the following options on the
88
[`dart` tool](/tools/dart-tool):
99

10-
* `--enable-analytics`: Enables anonymous analytics.
11-
* `--disable-analytics`: Disables anonymous analytics.
10+
* To enable anonymous analytics, run `dart --enable-analytics`.
11+
* To disable anonymous analytics, run `dart --disable-analytics`.

0 commit comments

Comments
 (0)