Merge branch 'cake-day' of https://github.com/krawieck/lemmur into cake-day

This commit is contained in:
krawieck 2021-07-08 13:58:51 +02:00
commit 1e1de00539
4 changed files with 5 additions and 5 deletions

View File

@ -36,12 +36,12 @@ class CommunityPage extends HookWidget {
const CommunityPage.fromName({
required String this.communityName,
required this.instanceHost,
}) : communityId = null,
}) : communityId = null,
_community = null;
const CommunityPage.fromId({
required int this.communityId,
required this.instanceHost,
}) : communityName = null,
}) : communityName = null,
_community = null;
CommunityPage.fromCommunityView(CommunityView this._community)
: instanceHost = _community.instanceHost,

View File

@ -16,7 +16,7 @@ class ModlogPage extends HookWidget {
const ModlogPage.forInstance({
required this.instanceHost,
}) : communityId = null,
}) : communityId = null,
name = instanceHost;
const ModlogPage.forCommunity({

View File

@ -17,7 +17,7 @@ class SearchResultsPage extends HookWidget {
SearchResultsPage({
required this.instanceHost,
required this.query,
}) : assert(instanceHost.isNotEmpty),
}) : assert(instanceHost.isNotEmpty),
assert(query.isNotEmpty);
@override

View File

@ -21,7 +21,7 @@ class WriteMessagePage extends HookWidget {
const WriteMessagePage.send({
required this.recipient,
required this.instanceHost,
}) : privateMessage = null,
}) : privateMessage = null,
_isEdit = false;
WriteMessagePage.edit(PrivateMessageView pmv)