feat(github): twitter username for orgs

This commit is contained in:
Rongjian Zhang 2022-10-04 04:14:52 +08:00
parent 057bad71fe
commit 4c2a7177eb
2 changed files with 10 additions and 0 deletions

View File

@ -360,6 +360,15 @@ class GhUserScreen extends StatelessWidget {
launchStringUrl(url);
},
),
if (p.twitterUsername != null)
AntListItem(
prefix: const Icon(Ionicons.logo_twitter),
child: Text('@${p.twitterUsername!}'),
onClick: () {
launchStringUrl(
'https://twitter.com/${p.twitterUsername}');
},
),
],
),
CommonStyle.verticalGap,

View File

@ -98,6 +98,7 @@ query User($login: String!) {
location
email
websiteUrl
twitterUsername
createdAt
viewerIsFollowing
sponsors {