wslSettings function
Implementation
Widget wslSettings(item, Function setState) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('wslsettings-text'.i18n()),
const SizedBox(
height: 8.0,
),
Expander(
header: Text('boot-text'.i18n()),
content: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
settingSwitch(item, setState, "boot", "systemd"),
settingText(item, setState, "boot", "command"),
],
),
),
const SizedBox(height: 8.0),
Expander(
header: Text('automount-text'.i18n()),
content: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
settingSwitch(item, setState, "automount", "enabled"),
settingSwitch(item, setState, "automount", "mountFsTab"),
settingText(item, setState, "automount", "root"),
settingText(item, setState, "automount", "options"),
],
),
),
const SizedBox(height: 8.0),
Expander(
header: Text('network-text'.i18n()),
content: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
settingSwitch(item, setState, "network", "generateHosts"),
settingSwitch(item, setState, "network", "generateResolvConf"),
settingText(item, setState, "network", "hostname"),
],
),
),
const SizedBox(height: 8.0),
Expander(
header: Text('interop-text'.i18n()),
content: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
settingSwitch(item, setState, "interop", "enabled"),
settingSwitch(item, setState, "interop", "appendWindowsPath"),
],
),
),
],
);
}