OLD | NEW |
1 --- | 1 --- |
2 layout: default | 2 layout: default |
3 title: "Dart Tutorials" | 3 title: "Dart Tutorials" |
4 description: "A Game of Darts—Your guide to building great web apps." | 4 description: "A Game of Darts—Your guide to building great web apps." |
5 has-permalinks: true | 5 has-permalinks: true |
6 rel: | 6 rel: |
7 author: | 7 author: |
8 - mary-campione | 8 - mary-campione |
9 tutorial: | 9 tutorial: |
10 id: tut-home | 10 id: tut-home |
11 next: get-started/ | 11 next: get-started/ |
12 next-title: "Get Started" | 12 next-title: "Get Started" |
13 --- | 13 --- |
14 | 14 |
15 {% capture content %} | 15 {% capture content %} |
16 | 16 |
17 <img src="images/banner.png"> | 17 <img src="images/banner.png"> |
18 | 18 |
19 **A Game of Darts** | 19 **A Game of Darts** |
20 is a collection of tutorials, _targets_, | 20 is a collection of tutorials, _targets_, |
21 that teaches you how to build mobile web applications | 21 that teaches you how to build web applications |
22 using the Dart language, tools, and APIs. | 22 using the Dart language, tools, and APIs. |
23 | 23 |
24 <strong>Who are you?</strong> | 24 <strong>Who are you?</strong> |
25 <ul> | 25 <ul> |
26 <li> You already know how to program in a structured language like C or Java.</l
i> | 26 <li> You already know how to program in a structured language like C or Java.</l
i> |
27 <li> You are familiar with object-oriented programming.</li> | 27 <li> You are familiar with object-oriented programming.</li> |
28 <li> You might not know how to program the browser through the DOM (Document Obj
ect Model).</li> | 28 <li> You might not know how to program the browser through the DOM (Document Obj
ect Model).</li> |
29 </ul> | 29 </ul> |
30 | 30 |
31 <strong>Let's go!</strong> Follow the targets in order from left to right...or c
hoose just the ones you need. | 31 <strong>Let's go!</strong> Follow the targets in order from left to right...or c
hoose just the ones you need. |
32 | 32 |
33 <div class="tute-tabs"> | 33 <div class="tute-tabs"> |
34 <div class="tabbable"> | 34 <div class="tabbable"> |
35 <ul class="nav nav-tabs"> | 35 <ul class="nav nav-tabs"> |
36 <li class="active"><a href="#basics" data-toggle="tab">Basics</a></li> | 36 <li class="active"><a href="#basics" data-toggle="tab">Basics</a></li> |
37 <li><a href="#dom" data-toggle="tab">Browser</a></li> | 37 <li><a href="#dom" data-toggle="tab">Browser</a></li> |
38 <li><a href="#packages" data-toggle="tab">Packages</a></li> | 38 <li><a href="#packages" data-toggle="tab">Packages</a></li> |
39 <li><a href="#webui" data-toggle="tab">Web UI</a></li> | 39 <li><a href="#polymer" data-toggle="tab">Polymer</a></li> |
40 <!--<li><a href="#polymer" data-toggle="tab">Polymer</a></li>--> | |
41 <li><a href="#forms" data-toggle="tab">Forms & Data</a></li> | 40 <li><a href="#forms" data-toggle="tab">Forms & Data</a></li> |
42 <!--<li><a href="#mobile" data-toggle="tab">Mobile</a></li>--> | 41 <!--<li><a href="#mobile" data-toggle="tab">Mobile</a></li>--> |
43 </ul> | 42 </ul> |
44 | 43 |
45 <div class="tab-content"> | 44 <div class="tab-content"> |
46 | 45 |
47 <!-- BASICS TAB --> | 46 <!-- BASICS TAB --> |
48 <div class="tab-pane active" id="basics"> | 47 <div class="tab-pane active" id="basics"> |
49 | 48 |
50 These two targets give a gentle introduction to writing Dart apps. | 49 These two targets give a gentle introduction to writing Dart apps. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 <p>Organize and share code at <a href="http://pub.dartlang.org/">pub.d
artlang.org</a>.</p> | 128 <p>Organize and share code at <a href="http://pub.dartlang.org/">pub.d
artlang.org</a>.</p> |
130 <img src="images/add-packages-screenshot.png" width="300"> | 129 <img src="images/add-packages-screenshot.png" width="300"> |
131 </section> | 130 </section> |
132 </div> | 131 </div> |
133 <div class="span6"> | 132 <div class="span6"> |
134 | 133 |
135 </div> | 134 </div> |
136 </div> | 135 </div> |
137 </div> <!-- end Packages tab --> | 136 </div> <!-- end Packages tab --> |
138 | 137 |
139 <!-- WEB UI TAB --> | 138 <!-- DEPRECATED: WEB UI TAB --> |
| 139 <!-- |
140 <div class="tab-pane" id="webui"> | 140 <div class="tab-pane" id="webui"> |
141 | 141 |
| 142 <aside class="alert" style="background-color:Lavender;color:SlateBlue"> |
| 143 <font size="24"> |
| 144 <i class="icon-bullhorn"> </i> |
| 145 </font> |
| 146 Web UI is being upgraded to |
| 147 <a href="/polymer-dart/" target="_blank">Polymer.dart</a>. |
| 148 We've just added a tutorial about |
| 149 <a href="/docs/tutorials/polymer/">Polymer Elements</a>, |
| 150 one key feature of Polymer. |
| 151 We've also provided Polymer.dart versions of the tutorial's Web UI apps. |
| 152 Check out the |
| 153 <a href="https://github.com/dart-lang/dart-tutorials-samples/tree/master/web/" |
| 154 target="_blank">tutorials's code repo</a> on github. |
| 155 </aside> |
| 156 |
142 Web components and templates are the next great ideas in web application d
evelopment. | 157 Web components and templates are the next great ideas in web application d
evelopment. |
143 Together they provide the building blocks to create richer and more dynami
c web applications. | 158 Together they provide the building blocks to create richer and more dynami
c web applications. |
144 With the Dart team’s <a href="http://pub.dartlang.org/packages/web_ui">Web
UI package</a>, | 159 With the Dart team’s <a href="http://pub.dartlang.org/packages/web_ui">Web
UI package</a>, |
145 you can get started using web components and templates now. | 160 you can get started using web components and templates now. |
146 | 161 |
147 <aside class="alert" style="background-color:Lavender;color:SlateBlue"> | |
148 <font size="24"> | |
149 <i class="icon-bullhorn"> </i> | |
150 </font> | |
151 Web UI is being upgraded to polymer.dart. | |
152 For more information about polymer.dart, | |
153 including tips on porting Web UI apps to polymer.dart | |
154 and the current status of the project, | |
155 check out the <a href="/polymer-dart/" target="_blank">polymer.dart</a> | |
156 home page. | |
157 For polymer.dart versions of the tutorial's Web UI apps, | |
158 check out the tutorial's | |
159 <a href="https://github.com/dart-lang/dart-tutorials-samples/tree/master/web/" | |
160 target="_blank">code repo</a> on github. | |
161 </aside> | |
162 | |
163 <div class="row-fluid"> | 162 <div class="row-fluid"> |
164 | 163 |
165 <!-- Get Started Web UI --> | |
166 <div class="span6" style="border-right:1px solid Lavender"> | 164 <div class="span6" style="border-right:1px solid Lavender"> |
167 <section> | 165 <section> |
168 <h4><a href="web-ui/"><img src="images/target.png" height="20" width="
20"> Get Started with Web UI</a></h4> | 166 <h4><a href="web-ui/"><img src="images/target.png" height="20" width="
20"> Get Started with Web UI</a></h4> |
169 <p>Bind Dart variables to UI elements.</p> | 167 <p>Bind Dart variables to UI elements.</p> |
170 <img src="images/shout-screenshot.png" width="300"> | 168 <img src="images/shout-screenshot.png" width="300"> |
171 </section> | 169 </section> |
172 </div> | 170 </div> |
173 | 171 |
174 <!-- Templates --> | |
175 <div class="span6" style="border-right:1px solid Lavender"> | 172 <div class="span6" style="border-right:1px solid Lavender"> |
176 <section> | 173 <section> |
177 <h4><a href="templates/"><img src="images/target.png" height="20" widt
h="20"> Use Templates</a></h4> | 174 <h4><a href="templates/"><img src="images/target.png" height="20" widt
h="20"> Use Templates</a></h4> |
178 <p>Activate UI elements with loops and conditionals.</p> | 175 <p>Activate UI elements with loops and conditionals.</p> |
179 <img src="images/hangman-screenshot.png" width="300"> | 176 <img src="images/hangman-screenshot.png" width="300"> |
180 </section> | 177 </section> |
181 </div> | 178 </div> |
182 </div> <!-- end row-fluid --> | 179 </div> |
183 | 180 |
184 <div class="row-fluid"> | 181 <div class="row-fluid"> |
185 <!-- Custom Elements --> | |
186 <div class="span6"> | 182 <div class="span6"> |
187 <section> | 183 <section> |
188 <h4><a href="custom-elements/"><img src="images/target.png" height="20
" width="20"> Define a Custom DOM Tag</a></h4> | 184 <h4><a href="custom-elements/"><img src="images/target.png" height="20
" width="20"> Define a Custom DOM Tag</a></h4> |
189 <p>Create new HTML tags with custom elements.</p> | 185 <p>Create new HTML tags with custom elements.</p> |
190 <img src="images/convert-screenshot.png" width="300"> | 186 <img src="images/convert-screenshot.png" width="300"> |
191 </section> | 187 </section> |
192 </div> | 188 </div> |
193 <div class="span6"> | 189 <div class="span6"> |
194 </div> | 190 </div> |
195 </div> <!-- end row-fluid --> | 191 </div> |
196 </div> <!-- end WEB UI tab --> | 192 </div> |
| 193 --> |
197 | 194 |
198 <!-- POLYMER TAB --> | 195 <!-- POLYMER TAB --> |
199 <!-- | |
200 <div class="tab-pane" id="polymer"> | 196 <div class="tab-pane" id="polymer"> |
| 197 <!-- |
| 198 <aside class="alert" style="background-color:Lavender;color:SlateBlue"> |
| 199 <font size="24"> |
| 200 <i class="icon-bullhorn"> </i> |
| 201 </font> |
| 202 <a href="/polymer-dart/" target="_blank">Polymer.dart</a>. |
| 203 supersedes Web UI. |
| 204 <a href="/docs/tutorials/polymer/">Polymer Elements</a>, |
| 205 a new tutorial, covers one key feature of Polymer.dart. |
| 206 We've also provided Polymer.dart versions of the tutorial's Web UI apps. |
| 207 Check out the |
| 208 <a href="https://github.com/dart-lang/dart-tutorials-samples/tree/master/web/" |
| 209 target="_blank">tutorials's code repo</a> on github. |
| 210 </aside> |
| 211 --> |
201 <div class="row-fluid"> | 212 <div class="row-fluid"> |
202 | 213 |
203 <div class="span6" style="border-right:1px solid Lavender"> | 214 <div class="span6" style="border-right:1px solid Lavender"> |
204 <section> | 215 <section> |
205 <h4><a href="polymer/"><img src="images/target.png" height="20" width=
"20"> Polymer</a></h4> | 216 <h4><a href="polymer-intro/"><img src="images/target.png" height="20"
width="20"> Define a Custom Element</a></h4> |
206 <p>Polymer - a shiny new package!</p> | 217 <p>Create a custom HTML element using Polymer.</p> |
207 <img src="images/countdown-screenshot.png" width="300"> | 218 <img src="images/stopwatch-screenshot.png" width="200"> |
208 </section> | 219 </section> |
209 </div> | 220 </div> |
210 | 221 |
211 <div class="span6"> | 222 <div class="span6"> |
212 </div> | 223 </div> |
213 | 224 |
214 </div> | 225 </div> |
215 </div> | 226 </div> |
216 --> | 227 |
217 | |
218 <!-- FORMS TAB --> | 228 <!-- FORMS TAB --> |
219 <div class="tab-pane" id="forms"> | 229 <div class="tab-pane" id="forms"> |
220 | 230 |
221 Various classes in the Dart libraries help you get, send and receive, | 231 Various classes in the Dart libraries help you get, send and receive, |
222 and save user data. | 232 and save user data. |
223 You can use input elements within forms to get data from users. | 233 You can use input elements within forms to get data from users. |
224 You can use JSON to format data and HttpRequest to send requests and recei
ve responses. | 234 You can use JSON to format data and HttpRequest to send requests and recei
ve responses. |
225 And, finally, you can save data on the client with IndexedDB. | 235 And, finally, you can save data on the client with IndexedDB. |
226 | 236 |
227 <div class="row-fluid"> | 237 <div class="row-fluid"> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 </div> | 289 </div> |
280 --> | 290 --> |
281 | 291 |
282 </div> <!-- end tab content--> | 292 </div> <!-- end tab content--> |
283 </div> <!--end tabbable --> | 293 </div> <!--end tabbable --> |
284 </div> <!-- end of tute-tabs --> | 294 </div> <!-- end of tute-tabs --> |
285 | 295 |
286 {% endcapture %} | 296 {% endcapture %} |
287 | 297 |
288 {% include tutorial_main_page.html %} | 298 {% include tutorial_main_page.html %} |
OLD | NEW |