This commit is contained in:
krawieck 2020-09-28 19:49:18 +02:00
parent b4db57d5f4
commit 93f1be94a0
1 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class CommunitiesTab extends HookWidget {
toggleCollapse(int i) => isCollapsed.value =
isCollapsed.value.mapWithIndex((e, j) => j == i ? !e : e).toList();
// TODO: add observer
return Scaffold(
appBar: AppBar(
actions: [
@ -140,6 +141,7 @@ class CommunitiesTab extends HookWidget {
Column(
children: [
ListTile(
onTap: () {}, // TODO: open instance
onLongPress: () => toggleCollapse(i),
leading: instances[i].icon != null
? CachedNetworkImage(
@ -172,6 +174,7 @@ class CommunitiesTab extends HookWidget {
Padding(
padding: const EdgeInsets.only(left: 17),
child: ListTile(
onTap: () {}, // TODO: open community
dense: true,
leading: VerticalDivider(
color: theme.hintColor,