AvatarBuilder to be of type Function(User)?
instead of Function(String)?
#286
Unanswered
allenkaplan
asked this question in
Ideas & Requests
Replies: 2 comments 1 reply
-
As far as I remember (@felixgabler correct me if I'm wrong) the rationale behind that MR was that the user can be updated elsewhere, and the builder would return user ID for you to fetch user first (to have the latest data) and then get |
Beta Was this translation helpful? Give feedback.
1 reply
-
@allenkaplan please open a PR if you may, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the custom avatar builder introduced by #248 has the AvatarBuilder take in the userId (type String)
I would like to have it take in the User so I can access
imageUrl
in addition touserId
The rationale is that we want the AvatarBuilder to use the CachedNetworkImage library (https://pub.dev/packages/cached_network_image) with a
cacheKey
ofuserId
, but the still have the url to download in case its missing in the cache for some reasonIf this is has support from maintainers/community, I'm happy to change this so we can use this in our own implementation
Beta Was this translation helpful? Give feedback.
All reactions