Adding Interactivity

Learn how to make a layout interactive by using interactive widgets.

Previously, we learned how to create the layout for our contact app via non-interactive widgets. In this lesson, we’ll learn to add interactivity to the layout of the application with interactive widgets.

To use an interactive widget, we need to wrap it around a layout widget that responds to user input.

Adding a second screen

First, let’s add a second screen to the contact app. Run the application below:

Get hands-on with 1400+ tech skills courses.