improvement: style tweaks

This commit is contained in:
Rongjian Zhang
2020-01-12 16:18:37 +08:00
parent 16bd98c099
commit abd9cd6c44
2 changed files with 22 additions and 12 deletions

View File

@@ -28,7 +28,6 @@ class UserItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Provider.of<ThemeModel>(context);
return Link(
url: '/$login',
child: Container(
@@ -44,19 +43,23 @@ class UserItem extends StatelessWidget {
children: <Widget>[
Row(
children: <Widget>[
Text(
name ?? login,
style: TextStyle(
color: theme.palette.primary,
fontSize: 17,
fontWeight: FontWeight.w500,
if (name != null) ...[
Text(
name,
style: TextStyle(
color: theme.palette.primary,
fontSize: 18,
fontWeight: FontWeight.w500,
),
),
),
SizedBox(width: 4),
SizedBox(width: 8),
],
Text(
'($login)',
login,
style: TextStyle(
color: theme.palette.secondaryText, fontSize: 16),
color: theme.palette.secondaryText,
fontSize: 16,
),
),
],
),