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 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.