Removed unused divider and commented code on settings page

This commit is contained in:
Imran Remtulla
2024-01-19 19:59:30 -05:00
parent e2761ce284
commit 29a76ac8e6

View File

@@ -416,13 +416,17 @@ class _SettingsPageState extends State<SettingsPage> {
value: settingsProvider.useSystemFont, value: settingsProvider.useSystemFont,
onChanged: (useSystemFont) { onChanged: (useSystemFont) {
if (useSystemFont) { if (useSystemFont) {
NativeFeatures.loadSystemFont().then((fontLoadRes) { NativeFeatures.loadSystemFont()
.then((fontLoadRes) {
if (fontLoadRes == 'ok') { if (fontLoadRes == 'ok') {
settingsProvider.useSystemFont = true; settingsProvider.useSystemFont =
true;
} else { } else {
showError(ObtainiumError( showError(
tr('systemFontError', args: [fontLoadRes]) ObtainiumError(tr(
), context); 'systemFontError',
args: [fontLoadRes])),
context);
} }
}); });
} else { } else {
@@ -628,38 +632,9 @@ class _SettingsPageState extends State<SettingsPage> {
label: Text(tr('appLogs'))), label: Text(tr('appLogs'))),
], ],
), ),
const Divider( const SizedBox(
height: 32, height: 16,
), )
// Padding(
// padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
// child: Column(children: [
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Flexible(child: Text(tr('debugMenu'))),
// Switch(
// value: settingsProvider.showDebugOpts,
// onChanged: (value) {
// settingsProvider.showDebugOpts = value;
// })
// ],
// ),
// if (settingsProvider.showDebugOpts)
// Column(
// crossAxisAlignment: CrossAxisAlignment.stretch,
// children: [
// height16,
// TextButton(
// onPressed: () {
// bgUpdateCheck('taskId', null);
// showMessage(tr('bgTaskStarted'), context);
// },
// child: Text(tr('runBgCheckNow')))
// ],
// ),
// ]),
// ),
], ],
), ),
) )