fix(avatar): change boxfit from contain to cover to make sure that pictures take the entire avatar space

This commit is contained in:
HammadAsiif 2024-08-15 11:54:10 +02:00
parent 91735f40cd
commit 0274e65f96
2 changed files with 2 additions and 1 deletions

View file

@ -12,7 +12,7 @@ class Avatar extends StatelessWidget {
this.user,
this.size = 100,
this.avatarBackgroundColor,
this.boxfit = BoxFit.contain,
this.boxfit = BoxFit.cover,
});
/// The user object containing user information.

View file

@ -46,6 +46,7 @@ class AvatarWrapper extends StatelessWidget {
user: user,
size: size,
avatarBackgroundColor: avatarBackgroundColor,
boxfit: BoxFit.cover,
);
return showName