improved performance and battery usage on older devices
This commit is contained in:
@@ -389,6 +389,10 @@ class _UserAvatarState extends State<UserAvatar> {
|
||||
payload.bytes,
|
||||
width: radius * 2,
|
||||
height: radius * 2,
|
||||
// Group avatars arrive at a fixed large server size; decoding them
|
||||
// at display size keeps a chat list from filling the image cache.
|
||||
cacheWidth: (radius * 2 * MediaQuery.devicePixelRatioOf(context))
|
||||
.round(),
|
||||
fit: BoxFit.cover,
|
||||
gaplessPlayback: true,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user