-
Notifications
You must be signed in to change notification settings - Fork 719
/
Copy pathindex.html
214 lines (207 loc) · 11.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
---
layout: homepage
title: Dart programming language
description: >-
Dart is an approachable, portable, and productive language for
high-quality apps on any platform.
---
<!-- Hero animation -->
<section class="dash-header">
<video autoplay loop muted playsinline>
<source src="assets/dash/video/hotreload.webm"
type='video/webm;codecs="vp8, vorbis"' />
<source src="assets/dash/video/hotreload.mp4"
type='video/mp4;codecs="avc1.42E01E, mp4a.40.2"' />
<img src="assets/dash/2x/paint-your-ui.png" alt="Paint your UI" />
</video>
<img src="assets/dash/2x/paint-your-ui.png" alt="Paint your UI to life"/>
</section>
<!-- Dart tag-line -->
<section class="dash-header-callout">
<div class="callout-title">
An approachable, portable, and productive language for high-quality apps on any platform
</div>
<div class="callout-button">
<a href="https://www.youtube.com/watch?v=5F-6n_2XWR8" target="_blank">
<span class="material-symbols">play_circle</span><span>Watch video</span>
</a>
</div>
<img class="made-by" src="assets/dash/2x/supported-by-google.png" alt="Supported by Google"/>
<div class="callout-oss">
<p>Dart is free and open source
<a href="https://github.com/dart-lang/" title="Dart project GitHub organization">
<svg><use href="/assets/img/social/github.svg#github"></use></svg>
</a>
</p>
</div>
</section>
<!-- Dart pillars -->
<section class="dash-dart-features">
<div class="feature">
<div class="feature-icon"><img src="assets/dash/2x/multiplatform-performance-light-op1.png" alt="Multiplatform performance"/></div>
<div class="feature-title">Approachable<br></div>
<div class="feature-desc">Develop with a consistent, concise, and strongly typed
programming language that offers modern features like null safety and pattern matching.
</div>
</div>
<div class="feature">
<div class="feature-icon"><img src="assets/dash/2x/client-optimized-light-op1.png" alt="Client optimised"/></div>
<div class="feature-title">Productive</br>development</div>
<div class="feature-desc">Make changes iteratively: use hot
reload to see the result instantly in your running app.
</div>
</div>
<div class="feature">
<div class="feature-icon"><img src="assets/dash/2x/productive-dev-light-op1.png" alt="Productive development"/></div>
<div class="feature-title">Portable and fast<br/>on all platforms</div>
<div class="feature-desc">Compile to ARM, x64, and RISC-V machine
code for mobile, desktop, and backend. Or, compile to JavaScript & WebAssembly
for the web.</div>
</div>
</section>
<!-- Dart pillar details -->
<div class="dart-dash-details">
<section class="dash-row">
<div class="content-image">
<img class="galleryOne" src="assets/dash/svg/1-1-async-await.svg" alt="Async await functions"/>
</div>
<div class="content-info">
<div class="content-container">
<div class="content-icon"><img src="assets/dash/2x/multiplatform-performance-light-op1.png" alt="Multiplatform performance"/> </div>
<div class="content-feature">Approachable</div>
<div class="content-desc" id="galleryOne">
<ul class="selector">
<li class="highlight" tabindex="0" data-banner="assets/dash/svg/1-1-async-await.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
Mature and complete <a href="/libraries/async/async-await">async-await</a>
for user interfaces containing event-driven code, paired with
<a href="/language/concurrency">isolate-based concurrency</a>.
</div>
</li>
<li tabindex="0" data-banner="assets/dash/svg/1-2-language-optimized.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
Write safe and concise code using features like <a href="/null-safety">sound null safety</a>,
<a href="/language/collections#control-flow-operators">collection if</a>,
and <a href="/language/patterns">pattern matching</a>.
</div>
</li>
<li tabindex="0" data-banner="assets/dash/svg/1-3-familiar-syntax.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
A consistent programming language, with an easy to learn and
<a href="/language">familiar syntax</a>.
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<section class="dash-row">
<div class="content-image">
<img class="galleryTwo" src="assets/dash/svg/2-1-hot-reload-iterative-changes.svg" alt="Hot reload your changes"/>
</div>
<div class="content-info">
<div class="content-container">
<div class="content-icon"><img src="assets/dash/2x/client-optimized-light-op1.png" alt="Productive development"/></div>
<div class="content-feature">Productive development</div>
<div class="content-desc" id="galleryTwo">
<ul class="selector">
<li class="highlight" tabindex="0" data-banner="assets/dash/svg/2-1-hot-reload-iterative-changes.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
Make changes to your source code iteratively, using
<a href="https://docs.flutter.dev/tools/hot-reload">hot reload</a>
to instantly see the effect in the running app.
</div>
</li>
<li tabindex="0" data-banner="assets/dash/svg/2-2-flexible-type.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
Write code using a flexible type system with rich
static analysis and powerful, <a href="/tools/analysis">configurable tooling</a>.
</div>
</li>
<li tabindex="0" data-banner="assets/dash/svg/2-3-runtime-insight.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
Do <a href="https://docs.flutter.dev/tools/devtools/performance">profiling</a>,
<a href="https://docs.flutter.dev/tools/devtools/logging">logging</a>,
and <a href="https://docs.flutter.dev/tools/devtools/debugger">debugging</a>
with your code editor of choice.
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<section class="dash-row">
<div class="content-image">
<img class="galleryThree" src="assets/dash/svg/3-1-aot-compile.svg" alt="Compiling dart file"/>
</div>
<div class="content-info">
<div class="content-container">
<div class="content-icon"><img src="assets/dash/2x/productive-dev-light-op1.png" alt="Multiplatform performance"/></div>
<div class="content-feature">Fast on all platforms</div>
<div class="content-desc" id="galleryThree">
<ul class="selector">
<li class="highlight" tabindex="0" data-banner="assets/dash/svg/3-1-aot-compile.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
<a href="/overview#native-platform">AOT-compile</a> apps to native
machine code for <a href="https://github.com/timsneath/time">instant startup</a>.
</div>
</li>
<li tabindex="0" data-banner="assets/dash/svg/3-2-target-web.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
Target the web with complete, mature, fast
<a href="/overview#web-platform">compilers for JavaScript and WebAssembly</a>.
</div>
</li>
<li tabindex="0" data-banner="assets/dash/svg/3-3-backend-code.svg">
<div class="bullet-container" aria-hidden="true">
<div class="animated-bullet"></div>
</div>
<div class="bullet-text">
Run <a href="/tutorials/server/httpserver">backend code</a>
supporting your app, written using a single programming language.
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<section class="dash-dartpad-row">
<div class="dash-dartpad">
<a id="try-dart" class="frontanchor" aria-hidden="true"></a>
<h2>Try Dart in your browser</h2>
<div id="dartpad-host">
<iframe src="https://dartpad.dev?theme=dark" loading="lazy"></iframe>
</div>
<h3>Want more practice? <a href="/language">Learn the language</a>,
explore the <a href="/libraries">core libraries</a>,
or <a href="/tutorials/server/get-started">build a command-line app</a>.</h3>
</div>
</section>
</div>