CHAPTER 26

image

Integrating Dart and CSS

In this chapter we’ll cover CSS and how you can work with CSS from Dart. We’ll see how we can manipulate the style properties of an element and how we can add or remove CSS classes to an element. Later we’ll see how to combine this with event handlers to change the appearance of an element when an event occurs. At the end of the chapter we’ll show you how to create visual effects in your Dart applications, integrating CSS with Dart.

For a long time, development was limited to creating HTML documents composed with HTML tags and some JavaScript scripts and styles, often inside the HTML elements, to change their ...

Get Web Programming with Dart now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.