Chapter 7
Interacting with the User
IN THIS CHAPTER
Collecting responses from the user
Responding to input
Dealing with null values
Advice on love and marriage
Love is in the air! The sun is shining. The birds are singing. Hearts are all a-Flutter. (Pun intended.)
Doris D. Developer wants to find a mate, and she has two important criteria. First, she wants someone who's 18 or older. Second, she's looking for someone who loves developing Flutter apps. What better way for Doris to achieve her goal than for her to write her own dating app?
This chapter covers Doris's outstanding work. To create the app, Doris uses several kinds of widgets: a text field, a slider, a drop-down button, and some others. A widget of this kind — one that the user sees and interacts with — is called a control element, or simply a control.
Doris's app also has some layout widgets, such as Center, Row, and Column, but these layout widgets aren't called controls. The user doesn't really see them and certainly doesn't interact with them. This chapter's emphasis is on the controls, not on the layout widgets or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access