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({ const CommunityPage.fromName({
required String this.communityName, required String this.communityName,
required this.instanceHost, required this.instanceHost,
}) : communityId = null, }) : communityId = null,
_community = null; _community = null;
const CommunityPage.fromId({ const CommunityPage.fromId({
required int this.communityId, required int this.communityId,
required this.instanceHost, required this.instanceHost,
}) : communityName = null, }) : communityName = null,
_community = null; _community = null;
CommunityPage.fromCommunityView(CommunityView this._community) CommunityPage.fromCommunityView(CommunityView this._community)
: instanceHost = _community.instanceHost, : instanceHost = _community.instanceHost,

View File

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

View File

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

View File

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