Make "subscribed" tile gray if user not logged in to that instance
This commit is contained in:
parent
f8733da21d
commit
bb99c9d9f4
|
@ -104,11 +104,19 @@ class HomeTab extends HookWidget {
|
|||
: SizedBox(width: 30),
|
||||
),
|
||||
ListTile(
|
||||
title: Text('Subscribed'),
|
||||
onTap: () => pop(SelectedList(
|
||||
listingType: PostListingType.subscribed,
|
||||
instanceUrl: instance,
|
||||
)),
|
||||
title: Text(
|
||||
'Subscribed',
|
||||
style: TextStyle(
|
||||
color: accStore.isAnonymousFor(instance)
|
||||
? theme.textTheme.bodyText1.color.withOpacity(0.4)
|
||||
: null),
|
||||
),
|
||||
onTap: accStore.isAnonymousFor(instance)
|
||||
? null
|
||||
: () => pop(SelectedList(
|
||||
listingType: PostListingType.subscribed,
|
||||
instanceUrl: instance,
|
||||
)),
|
||||
leading: SizedBox(width: 20),
|
||||
),
|
||||
ListTile(
|
||||
|
|
Loading…
Reference in New Issue