style: Reformatting

pull/228/head
Inex Code 2023-07-02 14:41:54 +03:00
parent 62b7a0ee7e
commit a8bddaaeba
4 changed files with 10 additions and 7 deletions

View File

@ -176,7 +176,8 @@ class ServerInstallationRepository {
await setDnsApiToken(token); await setDnsApiToken(token);
return (await ProvidersController.currentDnsProvider!.getZoneId( return (await ProvidersController.currentDnsProvider!.getZoneId(
domain, domain,
)).data; ))
.data;
} }
Future<Map<String, bool>> isDnsAddressesMatch( Future<Map<String, bool>> isDnsAddressesMatch(

View File

@ -21,10 +21,12 @@ class ServerJobsState extends ServerInstallationDependendState {
} }
} }
List<ServerJob> get backupJobList => serverJobList.where( List<ServerJob> get backupJobList => serverJobList
.where(
// The backup jobs has the format of 'service.<service_id>.backup' // The backup jobs has the format of 'service.<service_id>.backup'
(final job) => job.typeId.contains('backup'), (final job) => job.typeId.contains('backup'),
).toList(); )
.toList();
bool get hasRemovableJobs => serverJobList.any( bool get hasRemovableJobs => serverJobList.any(
(final job) => (final job) =>

View File

@ -44,11 +44,10 @@ class _DeveloperSettingsPageState extends State<DeveloperSettingsPage> {
), ),
SwitchListTile( SwitchListTile(
title: Text('developer_settings.ignore_tls'.tr()), title: Text('developer_settings.ignore_tls'.tr()),
subtitle: subtitle: Text('developer_settings.ignore_tls_description'.tr()),
Text('developer_settings.ignore_tls_description'.tr()),
value: TlsOptions.verifyCertificate, value: TlsOptions.verifyCertificate,
onChanged: (final bool value) => setState( onChanged: (final bool value) => setState(
() => TlsOptions.verifyCertificate = value, () => TlsOptions.verifyCertificate = value,
), ),
), ),
Padding( Padding(

View File

@ -179,7 +179,8 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
context: context, context: context,
useRootNavigator: true, useRootNavigator: true,
isScrollControlled: true, isScrollControlled: true,
builder: (final BuildContext context) => DraggableScrollableSheet( builder: (final BuildContext context) =>
DraggableScrollableSheet(
expand: false, expand: false,
maxChildSize: 0.9, maxChildSize: 0.9,
minChildSize: 0.4, minChildSize: 0.4,