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

fix: text overflow

This commit is contained in:
Rongjian Zhang 2020-01-26 23:36:58 +08:00
parent 917fd86c9a
commit 765bc23b5b

View File

@ -73,31 +73,34 @@ class RepositoryItem extends StatelessWidget {
linkUrl: '/$owner',
),
SizedBox(width: 8),
Row(
children: <Widget>[
Text(
owner + ' / ',
style: TextStyle(
fontSize: 18,
color: theme.paletteOf(context).primary,
Expanded(
child: Text.rich(
TextSpan(children: [
TextSpan(
text: '$owner / ',
style: TextStyle(
fontSize: 18,
color: theme.paletteOf(context).primary,
),
),
),
Text(
name,
style: TextStyle(
fontSize: 18,
color: theme.paletteOf(context).primary,
fontWeight: FontWeight.w600,
TextSpan(
text: name,
style: TextStyle(
fontSize: 18,
color: theme.paletteOf(context).primary,
fontWeight: FontWeight.w600,
),
// overflow: TextOverflow.ellipsis,
),
overflow: TextOverflow.ellipsis,
),
],
]),
overflow: TextOverflow.ellipsis,
),
),
if (iconData != null) ...[
SizedBox(width: 6),
DefaultTextStyle(
child: Icon(iconData,
size: 16,
size: 18,
color: theme.paletteOf(context).secondaryText),
style: TextStyle(
color: theme.paletteOf(context).secondaryText),