-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fromJSON is not working with thumbnail #92
Comments
If someone needs, I've created those methods that is working
|
Thanks for reporting! Will look into it shortly. |
@joachim-quis I believe this occurs because the update method only tries to store the high-res photo and not the thumbnail.
@nagringapp I would suggest using the thumbnail as the photo variable as a workaround or fetch the contact you are updating with the "withPhoto" variable being true. |
This may help. This helped me understand my problem when reading contacts from Firestore. Just copy this method and give it your List and it will cast & return Unit8List that can be used anywhere in Flutter such as image.memory() .
so need to change these lines in fromJson . I just created my own method.
|
I did use the toJSon to save it in the database, however the toJSON does now work when the data contains thumbnail.
type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'String'
The text was updated successfully, but these errors were encountered: