Contact Phone Numbers
Explore how to add mobile and other phone numbers to a contact profile page by using Flutter's ListTile widget for layout and icons, and the Divider widget to separate content. Understand how to create interactive phone number rows with call and message icons to enhance app usability.
We'll cover the following...
We'll cover the following...
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