Merge branch 'cake-day' of https://github.com/krawieck/lemmur into cake-day
This commit is contained in:
commit
1e1de00539
|
@ -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,
|
||||
|
|
|
@ -16,7 +16,7 @@ class ModlogPage extends HookWidget {
|
|||
|
||||
const ModlogPage.forInstance({
|
||||
required this.instanceHost,
|
||||
}) : communityId = null,
|
||||
}) : communityId = null,
|
||||
name = instanceHost;
|
||||
|
||||
const ModlogPage.forCommunity({
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue