refactor
This commit is contained in:
parent
5f713b1f9c
commit
ba884245b8
@ -221,27 +221,30 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
|||||||
sections: [
|
sections: [
|
||||||
if (encryptConfigSettings.isNotEmpty)
|
if (encryptConfigSettings.isNotEmpty)
|
||||||
SettingsSection(
|
SettingsSection(
|
||||||
title: Text('Encrypt Config'),
|
title: const Text('Encrypt Config'),
|
||||||
tiles: encryptConfigSettings,
|
tiles: encryptConfigSettings,
|
||||||
),
|
),
|
||||||
if (hostConfigSettings.isNotEmpty)
|
if (hostConfigSettings.isNotEmpty)
|
||||||
SettingsSection(
|
SettingsSection(
|
||||||
title: Text('Host Config'),
|
title: const Text('Host Config'),
|
||||||
tiles: hostConfigSettings,
|
tiles: hostConfigSettings,
|
||||||
),
|
),
|
||||||
if (remoteMountSettings.isNotEmpty)
|
if (remoteMountSettings.isNotEmpty)
|
||||||
SettingsSection(
|
SettingsSection(
|
||||||
title: Text('Remote Mount'),
|
title: const Text('Remote Mount'),
|
||||||
tiles: remoteMountSettings,
|
tiles: remoteMountSettings,
|
||||||
),
|
),
|
||||||
if (s3ConfigSettings.isNotEmpty)
|
if (s3ConfigSettings.isNotEmpty)
|
||||||
SettingsSection(title: Text('S3 Config'), tiles: s3ConfigSettings),
|
SettingsSection(
|
||||||
|
title: const Text('S3 Config'),
|
||||||
|
tiles: s3ConfigSettings,
|
||||||
|
),
|
||||||
if (siaConfigSettings.isNotEmpty)
|
if (siaConfigSettings.isNotEmpty)
|
||||||
SettingsSection(
|
SettingsSection(
|
||||||
title: Text('Sia Config'),
|
title: const Text('Sia Config'),
|
||||||
tiles: siaConfigSettings,
|
tiles: siaConfigSettings,
|
||||||
),
|
),
|
||||||
SettingsSection(title: Text('Settings'), tiles: commonSettings),
|
SettingsSection(title: const Text('Settings'), tiles: commonSettings),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user