Contact Phone Numbers

In this lesson, we discuss adding phone numbers in detail.

Introduction

In this lesson, you’ll be adding the contact’s phone numbers for two categories: “mobile” and “other” as shown in the screenshot below:

Mobile phone number

Let’s create a mobilePhoneListTile() method to build the widget for listing mobile phone numbers for the contact.

We need three parts to create an interface that displays the phone numbers.

  • Icon: An icon is used to provide a visual cue for the action item.
  • Text: The text includes the phone number and its category right below.
  • Action icon: An
...