mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
refactor: move exporting patches to another section
This commit is contained in:
parent
c571cf2c53
commit
d545dfe49b
@ -139,6 +139,7 @@
|
|||||||
"experimentalPatchesLabel": "Experimental Patch support",
|
"experimentalPatchesLabel": "Experimental Patch support",
|
||||||
"experimentalPatchesHint": "Enable to use unsupported patches in any app version",
|
"experimentalPatchesHint": "Enable to use unsupported patches in any app version",
|
||||||
"enabledExperimentalPatches": "Experimental patches enabled",
|
"enabledExperimentalPatches": "Experimental patches enabled",
|
||||||
|
"exportSectionTitle": "Import/Export",
|
||||||
"aboutLabel": "About",
|
"aboutLabel": "About",
|
||||||
"snackbarMessage": "Copied to clipboard",
|
"snackbarMessage": "Copied to clipboard",
|
||||||
"sentryLabel": "Sentry Logging",
|
"sentryLabel": "Sentry Logging",
|
||||||
|
@ -137,22 +137,22 @@ class SettingsView extends StatelessWidget {
|
|||||||
onTap: () => model.showSourcesDialog(context),
|
onTap: () => model.showSourcesDialog(context),
|
||||||
),
|
),
|
||||||
CustomSwitchTile(
|
CustomSwitchTile(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
title: I18nText(
|
title: I18nText(
|
||||||
'settingsView.experimentalPatchesLabel',
|
'settingsView.experimentalPatchesLabel',
|
||||||
child: const Text(
|
child: const Text(
|
||||||
'',
|
'',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
subtitle:
|
),
|
||||||
I18nText('settingsView.experimentalPatchesHint'),
|
subtitle:
|
||||||
value: model.areExperimentalPatchesEnabled(),
|
I18nText('settingsView.experimentalPatchesHint'),
|
||||||
onTap: (value) =>
|
value: model.areExperimentalPatchesEnabled(),
|
||||||
model.useExperimentalPatches(value)),
|
onTap: (value) => model.useExperimentalPatches(value),
|
||||||
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.symmetric(horizontal: 20.0),
|
const EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
@ -187,7 +187,29 @@ class SettingsView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.symmetric(horizontal: 20.0),
|
const EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
|
title: I18nText(
|
||||||
|
'settingsView.deleteLogsLabel',
|
||||||
|
child: const Text(
|
||||||
|
'',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 20,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
subtitle: I18nText('settingsView.deleteLogsHint'),
|
||||||
|
onTap: () => model.deleteLogs(),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
_settingsDivider,
|
||||||
|
SettingsSection(
|
||||||
|
title: 'settingsView.exportSectionTitle',
|
||||||
|
children: <Widget>[
|
||||||
|
ListTile(
|
||||||
|
contentPadding:
|
||||||
|
const EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
title: I18nText(
|
title: I18nText(
|
||||||
'settingsView.exportPatchesLabel',
|
'settingsView.exportPatchesLabel',
|
||||||
child: const Text(
|
child: const Text(
|
||||||
@ -203,7 +225,7 @@ class SettingsView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.symmetric(horizontal: 20.0),
|
const EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
title: I18nText(
|
title: I18nText(
|
||||||
'settingsView.importPatchesLabel',
|
'settingsView.importPatchesLabel',
|
||||||
child: const Text(
|
child: const Text(
|
||||||
@ -219,7 +241,7 @@ class SettingsView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.symmetric(horizontal: 20.0),
|
const EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
title: I18nText(
|
title: I18nText(
|
||||||
'settingsView.resetStoredPatchesLabel',
|
'settingsView.resetStoredPatchesLabel',
|
||||||
child: const Text(
|
child: const Text(
|
||||||
@ -230,25 +252,10 @@ class SettingsView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
subtitle: I18nText('settingsView.resetStoredPatchesHint'),
|
subtitle:
|
||||||
|
I18nText('settingsView.resetStoredPatchesHint'),
|
||||||
onTap: () => model.resetSelectedPatches(),
|
onTap: () => model.resetSelectedPatches(),
|
||||||
),
|
),
|
||||||
ListTile(
|
|
||||||
contentPadding:
|
|
||||||
const EdgeInsets.symmetric(horizontal: 20.0),
|
|
||||||
title: I18nText(
|
|
||||||
'settingsView.deleteLogsLabel',
|
|
||||||
child: const Text(
|
|
||||||
'',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
subtitle: I18nText('settingsView.deleteLogsHint'),
|
|
||||||
onTap: () => model.deleteLogs(),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
_settingsDivider,
|
_settingsDivider,
|
||||||
|
Loading…
Reference in New Issue
Block a user