diff --git a/firka/lib/helpers/settings.dart b/firka/lib/helpers/settings.dart index 5f8572b5..9d244577 100644 --- a/firka/lib/helpers/settings.dart +++ b/firka/lib/helpers/settings.dart @@ -355,7 +355,7 @@ class SettingsStore { 0, FirkaIconType.majesticons, Majesticon.lockSolid, - "Adatkezelési tájékoztató", + l10n.privacyLabel, LinkedHashMap.of({}), always, "privacy" @@ -364,8 +364,13 @@ class SettingsStore { 0, FirkaIconType.majesticons, Majesticon.awardSolid, - "Licencek", + l10n.licensesLabel, LinkedHashMap.of({ + "back": SettingsBackHeader(0, l10n.s_settings, always), + "header": SettingsMediumHeader(0, l10n.licensesLabel, always), + "licenses_header": + SettingsHeaderSmall(0, l10n.licenseDescription, always), + "show_license": ShowLicensePage(), }), always, null @@ -684,6 +689,27 @@ class SettingsHeaderSmall implements SettingsItem { Future save(IsarCollection model) async {} } +class ShowLicensePage implements SettingsItem { + @override + Id key = 0; + @override + FirkaIconType? iconType; + @override + Object? iconData; + @override + bool Function() visibilityProvider = always; + @override + Future Function() postUpdate = () async {}; + + ShowLicensePage(); + + @override + Future load(IsarCollection model) async {} + + @override + Future save(IsarCollection model) async {} +} + class SettingsSubtitle implements SettingsItem { @override Id key;