In this tutorial, I have used fast_contacts package. It is much faster than contacts_service and flutter_contact packages for reading the device's contact book. pub.dev/packages/fast_contacts Please Like, Share, Subscribe & Click on the Bell button for more video like this Thanks for watching the video 🙂
great tutorial! i was wondering if there's a change in the contacts (like adding a new contact for example), the change will not be reflected on the screen instantly since its a futurebuilder not a streambuilder. is there a way to reflect those changes with streambuilder?
have you provided permission? You need to provide contact permission to get contacts. All these things are covered in this video. are you getting any exception?
I agree. The code crashes with a Range Error Index Invalid which indicates that the page is trying to render before the contacts have been fetched. I think the whole thing should be async so you can use an await on the getContacts() function. Although waiting for an index should work, it simply does not.
Exception has occurred. RangeError (RangeError (index): Invalid value: Valid value range is empty: 0) bro the error show on code Text(contact.phones[0]), Text(contact.emails[0]),
In this tutorial, I have used fast_contacts package. It is much faster than contacts_service and flutter_contact packages for reading the device's contact book.
pub.dev/packages/fast_contacts
Please Like, Share, Subscribe & Click on the Bell button for more video like this
Thanks for watching the video 🙂
Best tutorial bro...
Thank you
God bless you brother
Thank you...
great tutorial! i was wondering if there's a change in the contacts (like adding a new contact for example), the change will not be reflected on the screen instantly since its a futurebuilder not a streambuilder. is there a way to reflect those changes with streambuilder?
Bro, did you find any solution? I want to achieve the same thing
Yes , the change is reflected
It doesn't work on ios devices, has anyone encountered and how did you solve this problem?
Bro please make vedio on how to create a chat app like what's app in flutter for android and iOS devices
Sure. I will include it in my list
@@EffortlessCodeLearning 😍
in my case this permission handler never works
thank you
Welcome!
how to developement this code?
Android studio?
Yes
error Type 'Uint8List' not found.
Add below import statement,
import 'dart:typed_data';
my contact list is not display
have you provided permission? You need to provide contact permission to get contacts. All these things are covered in this video.
are you getting any exception?
tnxxxxxxxxxxxx
Welcome
Dislike 👎
Where translation
Do you mean subtitles on video?
snapshot.data.length is not working
what is that exact error/issue you are facing?
I agree. The code crashes with a Range Error Index Invalid which indicates that the page is trying to render before the contacts have been fetched. I think the whole thing should be async so you can use an await on the getContacts() function. Although waiting for an index should work, it simply does not.
Exception has occurred.
RangeError (RangeError (index): Invalid value: Valid value range is empty: 0)
bro the error show on code
Text(contact.phones[0]),
Text(contact.emails[0]),
can you fix ?
do that Text(contact.phones.isNotEmpty ? contact.phones[0].number : ' ' ),
Text(contact.emails.isNotEmpty ? contact.emails[0].address : ' ')