Clean contact_state
This commit is contained in:
parent
654d403481
commit
a1ef168063
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user