refactor: update contact fetching to include accounts, photo, and thumbnail
All checks were successful
/ mirror (push) Successful in 13s
/ build (push) Successful in 10m38s
/ build-stealth (push) Successful in 10m38s

This commit is contained in:
AlexisDanlos 2025-04-05 01:57:37 +02:00
parent 612cccc381
commit 96427d78d9

View File

@ -54,9 +54,9 @@ class _AlphabetScrollPageState extends State<AlphabetScrollPage> {
if (await FlutterContacts.requestPermission()) {
Contact? fullContact = await FlutterContacts.getContact(contact.id,
withProperties: true,
withAccounts: false,
withPhoto: false,
withThumbnail: false);
withAccounts: true,
withPhoto: true,
withThumbnail: true);
if (fullContact != null) {
fullContact.isStarred = !fullContact.isStarred;