From b59022b001278cabe7228e873b89da2074c3ec7e Mon Sep 17 00:00:00 2001 From: krawieck Date: Wed, 9 Sep 2020 11:05:39 +0200 Subject: [PATCH] Fix copy-paste artifacts --- lib/pages/communities_list.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/communities_list.dart b/lib/pages/communities_list.dart index 595e2cb..06428c2 100644 --- a/lib/pages/communities_list.dart +++ b/lib/pages/communities_list.dart @@ -12,7 +12,7 @@ class CommunitiesListPage extends StatelessWidget { : assert(communities != null), super(key: key); - void goToUser(BuildContext context, int id) { + void goToCommunity(BuildContext context, int id) { print('GO TO COMMUNITY $id'); } @@ -29,14 +29,14 @@ class CommunitiesListPage extends StatelessWidget { ), body: ListView.builder( itemBuilder: (context, i) => ListTile( - title: Text(communities[i].name ?? '@${communities[i].name}'), + title: Text(communities[i].name), subtitle: communities[i].description != null ? Opacity( opacity: 0.5, child: MarkdownText(communities[i].description), ) : null, - onTap: () => goToUser(context, communities[i].id), + onTap: () => goToCommunity(context, communities[i].id), leading: communities[i].icon != null ? CachedNetworkImage( height: 50,