Chapter 10. Building a Dart web app

This chapter covers

  • The structure of a single-page web app
  • Building dynamic views with dart:html elements
  • Handling browser events with Dart

Dart’s primary use is building complex web apps. A web app typically comprises a single web page that loads in the browser and provides a host for the application’s code. This application source code is responsible for building the user interface, providing methods for navigating around the application, and storing the user’s data by either sending it to the server or storing it locally.

When building a web app in Dart, it’s good practice to build it working offline first. Working offline has a number of benefits, both for you as the developer and for the end user. ...

Get Dart in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.