Comments (3)
@tonini46 I am not the original author of this plugin. The current plugin has its limitations, and the issue you are experiencing might be related to the limitations. We are working on re-writing this plugin from the ground up that is clean, secure, flexible, and easy to maintain.
from flutter_contacts.
@tonini46 if you find a resolution to this issue or a workaround, I encourage you to share it here with the community. Thanks
from flutter_contacts.
Maybe adding pagination would be useful ?
Something like the following:
final total = await ContactsService.contactCount();
for(int i = 0; i < total, i+=40) {
final total = await ContactsService.getContacts(offset: i, limit: 40);
}
Having a method that only queries phone numbers for example would allow to cache data and query only phones that aren't cached ?
final allPhones = await ContactsService.getPhones();
final missingPhonesFromCache = MyPhoneCache.phoneNumbers.where((p) => !allPhones.contains(p));
final newContacts = await ContactsService.getContacts(phones: missingPhonesFromCache);
MyPhoneCache.insert(newContacts);
Method alternatives with simpler models would be an alternative too :
class ContactName {
final String name;
final List<Phone> phones;
ContactName(this.name, this.phones);
}
List<ContactName> names= await ContactsService.getContactNames();
from flutter_contacts.
Related Issues (20)
- I have a problem with fluter_contacts in my flutter app. HOT 3
- syntax error HOT 3
- [request] add phoneticFirst and phoneticLast HOT 3
- AsyncTask has been deprecated HOT 3
- Initial load with top 10, 20, 30, ... contacts list HOT 3
- Update contact and delete contact not working HOT 9
- ...
- LOOKING FOR CONTRIBUTORS HOT 7
- java.lang.NoClassDefFoundError HOT 1
- Contact saved with wrong label HOT 3
- Exception when you cancel editing contact on android HOT 1
- I want birthday without year HOT 1
- OpenContactForm should take initial Contact HOT 3
- ios contacts HOT 2
- ContactsServicePlugin.java line 521 flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin.getCursor HOT 1
- A problem occurred configuring project ':contacts_service'. HOT 1
- openContactForm initial value
- need to update all package
- Update package
- Phone number label not being persisted when adding a Contact
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_contacts.