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 noPic = mxContent == null || mxContent.toString().isEmpty;
final borderRadius = BorderRadius.circular(size / 2);
return InkWell( return InkWell(
onTap: onTap, onTap: onTap,
borderRadius: borderRadius,
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(size / 2), borderRadius: borderRadius,
child: Container( child: Container(
width: size, width: size,
height: size, height: size,