fix: Avatar Border Radius

This commit is contained in:
Christian Pauly 2020-10-28 07:35:38 +01:00
parent 6b844a168e
commit a8b617e096

View file

@ -45,10 +45,12 @@ class Avatar extends StatelessWidget {
),
);
final noPic = mxContent == null || mxContent.toString().isEmpty;
final borderRadius = BorderRadius.circular(size / 2);
return InkWell(
onTap: onTap,
borderRadius: borderRadius,
child: ClipRRect(
borderRadius: BorderRadius.circular(size / 2),
borderRadius: borderRadius,
child: Container(
width: size,
height: size,