Move to fonts plugin

This commit is contained in:
Gregory
2024-03-31 14:18:21 +03:00
parent 049bcfbaf5
commit 2289e58dda
7 changed files with 26 additions and 68 deletions

View File

@@ -469,17 +469,8 @@ class _SettingsPageState extends State<SettingsPage> {
onChanged: (useSystemFont) {
if (useSystemFont) {
NativeFeatures.loadSystemFont()
.then((fontLoadRes) {
if (fontLoadRes == 'ok') {
settingsProvider.useSystemFont =
true;
} else {
showError(
ObtainiumError(tr(
'systemFontError',
args: [fontLoadRes])),
context);
}
.then((val) {
settingsProvider.useSystemFont = true;
});
} else {
settingsProvider.useSystemFont = false;