Remove "rencently banned" list. leave a button to it instead

This commit is contained in:
krawieck 2020-09-09 11:09:38 +02:00
parent b59022b001
commit 3abd5875ee
1 changed files with 1 additions and 19 deletions

View File

@ -371,27 +371,9 @@ class _AboutTab extends HookWidget {
)),
_Divider(),
ListTile(
title: Center(
child: Text(
'Recently banned:',
style: theme.textTheme.headline6.copyWith(fontSize: 18),
),
),
),
...site.banned.reversed.take(5).map((e) => ListTile(
// subtitle: Text(),
title: Text(
(e.preferredUsername == null || e.preferredUsername == '')
? '@${e.name}'
: e.preferredUsername),
onTap: () => goToUser(e.id),
leading: SizedBox(width: 50),
)),
ListTile(
title: Center(child: Text('See all')),
title: Center(child: Text('Banned users')),
onTap: () => goToBannedUsers(context),
),
_Divider(),
ListTile(
title: Center(child: Text('Modlog')),
onTap: goToModLog,