diff --git a/lib/widgets/repository_item.dart b/lib/widgets/repository_item.dart index 39c0798..aea2593 100644 --- a/lib/widgets/repository_item.dart +++ b/lib/widgets/repository_item.dart @@ -73,31 +73,34 @@ class RepositoryItem extends StatelessWidget { linkUrl: '/$owner', ), SizedBox(width: 8), - Row( - children: [ - 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),