1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-19 19:54:54 +01:00

fix: text overflow

This commit is contained in:
Rongjian Zhang 2019-12-21 22:01:08 +08:00
parent 42f67c3ed1
commit d40b877504

View File

@ -157,22 +157,30 @@ class RepositoryItem extends StatelessWidget {
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
owner + ' / ',
style: TextStyle(
fontSize: 17,
color: theme.palette.primary,
Expanded(
child: Row(
children: <Widget>[
Text(
owner + ' / ',
style: TextStyle(
fontSize: 17,
color: theme.palette.primary,
),
),
Expanded(
child: Text(
name,
style: TextStyle(
fontSize: 17,
color: theme.palette.primary,
fontWeight: FontWeight.w600,
),
overflow: TextOverflow.ellipsis,
),
),
],
),
),
Text(
name,
style: TextStyle(
fontSize: 17,
color: theme.palette.primary,
fontWeight: FontWeight.w600,
),
),
Expanded(child: Container()),
Icon(iconData, size: 17, color: theme.palette.tertiaryText),
],
),
@ -224,7 +232,12 @@ class RepositoryItem extends StatelessWidget {
),
),
SizedBox(width: 4),
Text(primaryLanguageName ?? 'Unknown'),
Expanded(
child: Text(
primaryLanguageName ?? 'Unknown',
overflow: TextOverflow.ellipsis,
),
),
]),
),
Expanded(