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);
|
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,
|
CommonStyle.verticalGap,
|
||||||
|
|
|
@ -30,6 +30,7 @@ fragment UserParts on User {
|
||||||
url
|
url
|
||||||
email
|
email
|
||||||
websiteUrl
|
websiteUrl
|
||||||
|
twitterUsername
|
||||||
viewerCanFollow # TODO: remove in viewer query
|
viewerCanFollow # TODO: remove in viewer query
|
||||||
viewerIsFollowing
|
viewerIsFollowing
|
||||||
sponsors {
|
sponsors {
|
||||||
|
|
Loading…
Reference in New Issue