Clean contact_state

This commit is contained in:
stcb 2024-10-31 09:55:09 +02:00
parent 654d403481
commit a1ef168063

View File

@ -35,11 +35,6 @@ class _ContactStateState extends State<ContactState> {
List<Contact> contacts = await _contactService.fetchContacts();
contacts = contacts.where((contact) => contact.phones.isNotEmpty).toList();
contacts.sort((a, b) => a.displayName.compareTo(b.displayName));
// contacts.sort((a, b) {
// String aName = a.displayName.isNotEmpty ? a.displayName : '􏿿';
// String bName = b.displayName.isNotEmpty ? b.displayName : '􏿿';
// return aName.compareTo(bName);
// });
setState(() {
_contacts = contacts;
_loading = false;