mirror of
https://github.com/git-touch/git-touch
synced 2025-03-12 01:00:16 +01:00
fix: text overflow
This commit is contained in:
parent
917fd86c9a
commit
765bc23b5b
@ -73,31 +73,34 @@ class RepositoryItem extends StatelessWidget {
|
|||||||
linkUrl: '/$owner',
|
linkUrl: '/$owner',
|
||||||
),
|
),
|
||||||
SizedBox(width: 8),
|
SizedBox(width: 8),
|
||||||
Row(
|
Expanded(
|
||||||
children: <Widget>[
|
child: Text.rich(
|
||||||
Text(
|
TextSpan(children: [
|
||||||
owner + ' / ',
|
TextSpan(
|
||||||
|
text: '$owner / ',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
color: theme.paletteOf(context).primary,
|
color: theme.paletteOf(context).primary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
TextSpan(
|
||||||
name,
|
text: name,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
color: theme.paletteOf(context).primary,
|
color: theme.paletteOf(context).primary,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
|
// overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
]),
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
),
|
||||||
if (iconData != null) ...[
|
if (iconData != null) ...[
|
||||||
SizedBox(width: 6),
|
SizedBox(width: 6),
|
||||||
DefaultTextStyle(
|
DefaultTextStyle(
|
||||||
child: Icon(iconData,
|
child: Icon(iconData,
|
||||||
size: 16,
|
size: 18,
|
||||||
color: theme.paletteOf(context).secondaryText),
|
color: theme.paletteOf(context).secondaryText),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: theme.paletteOf(context).secondaryText),
|
color: theme.paletteOf(context).secondaryText),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user