From dbce1732394cb2ccca4cfea6da8cc50519ad02f9 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Wed, 9 Sep 2020 18:53:24 +0200 Subject: [PATCH] changed name of the subscribe toggle --- lib/pages/communities_tab.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pages/communities_tab.dart b/lib/pages/communities_tab.dart index d68ab01..8567109 100644 --- a/lib/pages/communities_tab.dart +++ b/lib/pages/communities_tab.dart @@ -104,7 +104,7 @@ class CommunitiesTab extends HookWidget { errorWidget: (_, __, ___) => SizedBox(width: 30), ), title: Text('!${comm.communityName}'), - trailing: _CommunitySubscribe( + trailing: _CommunitySubscribeToggle( instanceUrl: 'asd', // TODO: extract instanceUrl communityId: comm.id, ), @@ -119,11 +119,12 @@ class CommunitiesTab extends HookWidget { } } -class _CommunitySubscribe extends HookWidget { +class _CommunitySubscribeToggle extends HookWidget { final int communityId; final String instanceUrl; - _CommunitySubscribe({@required this.instanceUrl, @required this.communityId}) + _CommunitySubscribeToggle( + {@required this.instanceUrl, @required this.communityId}) : assert(instanceUrl != null), assert(communityId != null);