Format code

This commit is contained in:
shilangyu 2021-07-08 12:19:26 +02:00
parent 5cb542609e
commit 8a82c986bb
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)