From 3690cf04623bf46ae24f67cb4d5804afd7cb03cc Mon Sep 17 00:00:00 2001 From: balint1414 Date: Thu, 9 Oct 2025 20:57:23 +0200 Subject: [PATCH] =?UTF-8?q?Ford=C3=ADt=C3=A1s,=20License=20men=C3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firka/lib/helpers/settings.dart | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) 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;