Hide followed communities
This commit is contained in:
parent
8e7602ce3d
commit
8cc4246569
|
@ -388,32 +388,23 @@ class _AboutTab extends HookWidget {
|
||||||
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
||||||
communityTile(
|
communityTile(
|
||||||
comm.community.name, comm.community.icon, comm.community.id),
|
comm.community.name, comm.community.icon, comm.community.id),
|
||||||
divider
|
divider,
|
||||||
],
|
],
|
||||||
ListTile(
|
if (userDetails.follows.isNotEmpty) ...[
|
||||||
title: Center(
|
ListTile(
|
||||||
child: Text(
|
title: Center(
|
||||||
'Subscribed:',
|
child: Text(
|
||||||
style: theme.textTheme.headline6.copyWith(fontSize: 18),
|
'Subscribed:',
|
||||||
|
style: theme.textTheme.headline6.copyWith(fontSize: 18),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
if (userDetails.follows.isNotEmpty)
|
|
||||||
for (final comm
|
for (final comm
|
||||||
in userDetails.follows
|
in userDetails.follows
|
||||||
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
||||||
communityTile(
|
communityTile(
|
||||||
comm.community.name, comm.community.icon, comm.community.id)
|
comm.community.name, comm.community.icon, comm.community.id)
|
||||||
else
|
]
|
||||||
const Padding(
|
|
||||||
padding: EdgeInsets.only(top: 8),
|
|
||||||
child: Center(
|
|
||||||
child: Text(
|
|
||||||
'this user does not subscribe to any community',
|
|
||||||
style: TextStyle(fontStyle: FontStyle.italic),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue