From 6c3205c6ed143752870fb86c640ed95e8570cd99 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Sat, 8 Feb 2020 12:45:44 +0800 Subject: [PATCH] improvement(gh): add repo link in issue screen --- lib/screens/gh_issue.dart | 45 +++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/lib/screens/gh_issue.dart b/lib/screens/gh_issue.dart index 52e9b19..177aa7c 100644 --- a/lib/screens/gh_issue.dart +++ b/lib/screens/gh_issue.dart @@ -386,29 +386,32 @@ fragment ReactableParts on Reactable { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Row( - children: [ - Avatar( - url: p['repository']['owner']['avatarUrl'], - size: AvatarSize.extraSmall, - ), - SizedBox(width: 4), - Text( - '$owner / $name', - style: TextStyle( - fontSize: 17, - color: theme.palette.secondaryText, + Link( + url: '/$owner/$name', + child: Row( + children: [ + Avatar( + url: p['repository']['owner']['avatarUrl'], + size: AvatarSize.extraSmall, ), - ), - SizedBox(width: 4), - Text( - '#$number', - style: TextStyle( - fontSize: 17, - color: theme.palette.tertiaryText, + SizedBox(width: 4), + Text( + '$owner / $name', + style: TextStyle( + fontSize: 17, + color: theme.palette.secondaryText, + ), ), - ), - ], + SizedBox(width: 4), + Text( + '#$number', + style: TextStyle( + fontSize: 17, + color: theme.palette.tertiaryText, + ), + ), + ], + ), ), SizedBox(height: 8), Text(