1
0
mirror of https://github.com/git-touch/git-touch synced 2025-03-08 15:27:40 +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( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Text( Expanded(
owner + ' / ', child: Row(
style: TextStyle( children: <Widget>[
fontSize: 17, Text(
color: theme.palette.primary, 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), Icon(iconData, size: 17, color: theme.palette.tertiaryText),
], ],
), ),
@ -224,7 +232,12 @@ class RepositoryItem extends StatelessWidget {
), ),
), ),
SizedBox(width: 4), SizedBox(width: 4),
Text(primaryLanguageName ?? 'Unknown'), Expanded(
child: Text(
primaryLanguageName ?? 'Unknown',
overflow: TextOverflow.ellipsis,
),
),
]), ]),
), ),
Expanded( Expanded(