Clean up everything

This commit is contained in:
Christian Pauly
2020-01-19 15:07:42 +01:00
parent cccbd7557e
commit f4ef4eeea9
15 changed files with 621 additions and 379 deletions

View File

@ -42,7 +42,9 @@ class Avatar extends StatelessWidget {
src,
)
: null,
backgroundColor: name?.color ?? Theme.of(context).secondaryHeaderColor,
backgroundColor: mxContent.mxc.isEmpty
? name?.color ?? Theme.of(context).secondaryHeaderColor
: Theme.of(context).secondaryHeaderColor,
child: mxContent.mxc.isEmpty
? Text(fallbackLetters, style: TextStyle(color: Colors.white))
: null,