mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-18 16:53:45 +02:00
fix(avatar): change boxfit from contain to cover to make sure that pictures take the entire avatar space
This commit is contained in:
parent
91735f40cd
commit
0274e65f96
2 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ class Avatar extends StatelessWidget {
|
||||||
this.user,
|
this.user,
|
||||||
this.size = 100,
|
this.size = 100,
|
||||||
this.avatarBackgroundColor,
|
this.avatarBackgroundColor,
|
||||||
this.boxfit = BoxFit.contain,
|
this.boxfit = BoxFit.cover,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// The user object containing user information.
|
/// The user object containing user information.
|
||||||
|
|
|
@ -46,6 +46,7 @@ class AvatarWrapper extends StatelessWidget {
|
||||||
user: user,
|
user: user,
|
||||||
size: size,
|
size: size,
|
||||||
avatarBackgroundColor: avatarBackgroundColor,
|
avatarBackgroundColor: avatarBackgroundColor,
|
||||||
|
boxfit: BoxFit.cover,
|
||||||
);
|
);
|
||||||
|
|
||||||
return showName
|
return showName
|
||||||
|
|
Loading…
Reference in a new issue