refactor: update contact fetching to include accounts, photo, and thumbnail
This commit is contained in:
parent
612cccc381
commit
96427d78d9
@ -54,9 +54,9 @@ class _AlphabetScrollPageState extends State<AlphabetScrollPage> {
|
|||||||
if (await FlutterContacts.requestPermission()) {
|
if (await FlutterContacts.requestPermission()) {
|
||||||
Contact? fullContact = await FlutterContacts.getContact(contact.id,
|
Contact? fullContact = await FlutterContacts.getContact(contact.id,
|
||||||
withProperties: true,
|
withProperties: true,
|
||||||
withAccounts: false,
|
withAccounts: true,
|
||||||
withPhoto: false,
|
withPhoto: true,
|
||||||
withThumbnail: false);
|
withThumbnail: true);
|
||||||
|
|
||||||
if (fullContact != null) {
|
if (fullContact != null) {
|
||||||
fullContact.isStarred = !fullContact.isStarred;
|
fullContact.isStarred = !fullContact.isStarred;
|
||||||
|
Loading…
Reference in New Issue
Block a user