changed name of the subscribe toggle

This commit is contained in:
shilangyu 2020-09-09 18:53:24 +02:00
parent 260854386d
commit dbce173239
1 changed files with 4 additions and 3 deletions

View File

@ -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);