QuisApp / flutter_contacts

MIT License
84 stars 140 forks source link

Contact Names are fetched but not the number #124

Closed saminBee closed 1 year ago

saminBee commented 1 year ago

I have 4 contacts on my test phone. All the name are fetched but not their contact number.

HongZhiQing commented 1 year ago

How did you solve it?

SaminYeaser commented 1 year ago

Use the Contact service package in Flutter Contact contactData;

Then fetched the number like this:

Text(contactData.phones.first.number)

Previously I was using contactData.phones.first, thought the first number will be provided, but saw in the documentation that the first has another parameter .number