feat(github): twitter username at user screen
This commit is contained in:
parent
7a71d13f7d
commit
9b339c6cdf
|
@ -145,6 +145,14 @@ class _User 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,
|
||||
|
|
|
@ -30,6 +30,7 @@ fragment UserParts on User {
|
|||
url
|
||||
email
|
||||
websiteUrl
|
||||
twitterUsername
|
||||
viewerCanFollow # TODO: remove in viewer query
|
||||
viewerIsFollowing
|
||||
sponsors {
|
||||
|
|
Loading…
Reference in New Issue