Skip to content

Commit

Permalink
fix: text overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Jan 26, 2020
1 parent 917fd86 commit 765bc23
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions lib/widgets/repository_item.dart
Expand Up @@ -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),
Expand Down

0 comments on commit 765bc23

Please sign in to comment.