Minor fixes

This commit is contained in:
Christian Pauly
2020-03-13 21:42:05 +01:00
parent 3b574b047f
commit 01b1b56852
4 changed files with 13 additions and 8 deletions

View File

@ -11,9 +11,15 @@ class Avatar extends StatelessWidget {
final String name;
final double size;
final Function onTap;
static const double defaultSize = 44;
const Avatar(this.mxContent, this.name, {this.size = 40, this.onTap, Key key})
: super(key: key);
const Avatar(
this.mxContent,
this.name, {
this.size = defaultSize,
this.onTap,
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {