settings: Move experiments to developer mode card

This commit is contained in:
Calcitem 2021-09-05 11:07:35 +08:00
parent ff0c27a0c2
commit e5193b83a1
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 7 additions and 13 deletions

View File

@ -295,19 +295,6 @@ class _GameSettingsPageState extends State<GameSettingsPage> {
],
),
SizedBox(height: AppTheme.sizedBoxHeight),
Text(S.of(context).experiments, style: AppTheme.settingsHeaderStyle),
SettingsCard(
context: context,
children: <Widget>[
SettingsSwitchListTile(
context: context,
value: Config.experimentsEnabled,
onChanged: setExperimentsEnabled,
titleString: S.of(context).experiments,
),
],
),
SizedBox(height: AppTheme.sizedBoxHeight),
Text(S.of(context).restore, style: AppTheme.settingsHeaderStyle),
SettingsCard(
context: context,
@ -336,6 +323,13 @@ class _GameSettingsPageState extends State<GameSettingsPage> {
titleString: S.of(context).developerMode,
),
ListItemDivider(),
SettingsSwitchListTile(
context: context,
value: Config.experimentsEnabled,
onChanged: setExperimentsEnabled,
titleString: S.of(context).experiments,
),
ListItemDivider(),
SettingsSwitchListTile(
context: context,
value: Config.isAutoRestart,