Skip to content

Commit 2d02299

Browse files
committed
content: Change AvatarImage to fill its parent widget
Applied BoxFit.cover to enlarge the image if the parent widget is larger than its natural size.
1 parent 641db20 commit 2d02299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/content.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ class AvatarImage extends StatelessWidget {
845845
};
846846
return (resolvedUrl == null)
847847
? const SizedBox.shrink()
848-
: RealmContentNetworkImage(resolvedUrl, filterQuality: FilterQuality.medium);
848+
: RealmContentNetworkImage(resolvedUrl, filterQuality: FilterQuality.medium, fit: BoxFit.cover);
849849
}
850850
}
851851

0 commit comments

Comments
 (0)