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