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