Minor design fixes

This commit is contained in:
Christian Pauly 2020-06-27 13:09:21 +02:00
commit 6dc20f4d07
2 changed files with 34 additions and 8 deletions

View file

@ -44,19 +44,34 @@ class PresenceListItem extends StatelessWidget {
child: Column(
children: <Widget>[
SizedBox(height: 16),
Avatar(user.avatarUrl, user.calcDisplayname()),
Container(
child: Avatar(user.avatarUrl, user.calcDisplayname()),
decoration: BoxDecoration(
border: Border.all(
width: 1,
color: presence?.presence?.statusMsg == null
? presence?.presence?.currentlyActive == true
? Colors.blue
: Theme.of(context).secondaryHeaderColor
: Theme.of(context).primaryColor,
),
borderRadius: BorderRadius.circular(80),
),
padding: EdgeInsets.all(2),
),
Padding(
padding: const EdgeInsets.only(left: 6.0, top: 6.0, right: 6.0),
padding: const EdgeInsets.only(left: 6.0, top: 0.0, right: 6.0),
child: Text(
user.calcDisplayname(),
overflow: TextOverflow.ellipsis,
user.calcDisplayname().trim().split(' ').first,
overflow: TextOverflow.clip,
maxLines: 1,
style: TextStyle(
color: Color(0xFF555555),
color: Theme.of(context)
.textTheme
.bodyText2
.color
.withOpacity(0.66),
fontSize: 13,
fontWeight: presence?.presence?.statusMsg == null
? null
: FontWeight.bold,
),
),
),