mirror of
https://github.com/git-touch/git-touch
synced 2025-03-05 11:48:02 +01:00
fix(gh): trending user has no repo
This commit is contained in:
parent
74a175f384
commit
a3619ba340
@ -50,28 +50,30 @@ class GhTrendingScreen extends StatelessWidget {
|
||||
login: v.username,
|
||||
// name: v.name,
|
||||
avatarUrl: v.avatar,
|
||||
bio: Link(
|
||||
url: '/github/${v.username}/${v.repo.name}',
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Octicons.repo,
|
||||
size: 17,
|
||||
color: theme.palette.secondaryText,
|
||||
),
|
||||
SizedBox(width: 4),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'${v.username} / ${v.repo.name}',
|
||||
style: TextStyle(
|
||||
fontSize: 17,
|
||||
color: theme.palette.secondaryText,
|
||||
bio: v.repo == null
|
||||
? null
|
||||
: Link(
|
||||
url: '/github/${v.username}/${v.repo.name}',
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Octicons.repo,
|
||||
size: 17,
|
||||
color: theme.palette.secondaryText,
|
||||
),
|
||||
SizedBox(width: 4),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'${v.username} / ${v.repo.name}',
|
||||
style: TextStyle(
|
||||
fontSize: 17,
|
||||
color: theme.palette.secondaryText,
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
))
|
||||
],
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
))
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user