rfplus improvements

This commit is contained in:
Kima 2024-03-01 18:38:29 +01:00
parent 0b4d14c223
commit 010867260c
3 changed files with 75 additions and 41 deletions

View File

@ -1,3 +1,4 @@
import 'package:refilc_mobile_ui/premium/plus_screen.i18n.dart';
import 'package:refilc_mobile_ui/premium/components/plan_card.dart'; import 'package:refilc_mobile_ui/premium/components/plan_card.dart';
import 'package:flutter_feather_icons/flutter_feather_icons.dart'; import 'package:flutter_feather_icons/flutter_feather_icons.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -6,7 +7,7 @@ import 'package:refilc_plus/providers/premium_provider.dart';
import 'package:refilc_plus/ui/mobile/premium/upsell.dart'; import 'package:refilc_plus/ui/mobile/premium/upsell.dart';
import 'components/active_sponsor_card.dart'; import 'components/active_sponsor_card.dart';
import 'components/github_button.dart'; // import 'components/github_button.dart';
class PlusScreen extends StatelessWidget { class PlusScreen extends StatelessWidget {
const PlusScreen({super.key}); const PlusScreen({super.key});
@ -96,8 +97,7 @@ class PlusScreen extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 12.0), padding: const EdgeInsets.symmetric(horizontal: 12.0),
child: Text.rich( child: Text.rich(
TextSpan( TextSpan(
text: text: 'even_more_cheaper'.i18n,
'Még több reFilc, olcsóbban,\nmint bármi más!',
style: const TextStyle( style: const TextStyle(
height: 1.2, height: 1.2,
fontSize: 22, fontSize: 22,
@ -132,7 +132,7 @@ class PlusScreen extends StatelessWidget {
child: Text.rich( child: Text.rich(
TextSpan( TextSpan(
children: [ children: [
const TextSpan(text: 'Támogasd a QwIT'), TextSpan(text: 'support_1'.i18n),
WidgetSpan( WidgetSpan(
child: Transform.translate( child: Transform.translate(
offset: const Offset(1.0, -3.6), offset: const Offset(1.0, -3.6),
@ -147,9 +147,8 @@ class PlusScreen extends StatelessWidget {
), ),
), ),
), ),
const TextSpan( TextSpan(
text: text: 'support_2'.i18n,
' csapatát, és szerezz cserébe pár kényelmes jutalmat!',
), ),
], ],
style: TextStyle( style: TextStyle(
@ -168,9 +167,8 @@ class PlusScreen extends StatelessWidget {
PremiumFeatureLevel.cap, PremiumFeatureLevel.cap,
iconPath: 'assets/images/plus_tier_cap.png', iconPath: 'assets/images/plus_tier_cap.png',
title: 'reFilc+', title: 'reFilc+',
description: description: 'tier_rfp'.i18n,
'Több személyre szabás, több fiók, egyszerű feladatfeljegyzés.', color: const Color.fromARGB(255, 97, 0, 187),
color: Color.fromARGB(255, 97, 0, 187),
id: 'refilcplus', id: 'refilcplus',
price: 0.99, price: 0.99,
borderRadius: const BorderRadius.vertical( borderRadius: const BorderRadius.vertical(
@ -195,9 +193,8 @@ class PlusScreen extends StatelessWidget {
PremiumFeatureLevel.ink, PremiumFeatureLevel.ink,
iconPath: 'assets/images/plus_tier_ink.png', iconPath: 'assets/images/plus_tier_ink.png',
title: 'reFilc+ Gold', title: 'reFilc+ Gold',
description: description: 'tier_rfpgold'.i18n,
'Férj hozzá még több funkcióhoz, használj még több profilt és tedd egyszerűbbé mindennapjaid.', color: const Color.fromARGB(255, 187, 137, 0),
color: Color.fromARGB(255, 187, 137, 0),
id: 'refilcplusgold', id: 'refilcplusgold',
price: 2.99, price: 2.99,
borderRadius: const BorderRadius.vertical( borderRadius: const BorderRadius.vertical(
@ -246,7 +243,7 @@ class PlusScreen extends StatelessWidget {
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 12.0), padding: const EdgeInsets.symmetric(horizontal: 12.0),
child: Text( child: Text(
'Gyakori kérdések', 'faq'.i18n,
style: TextStyle( style: TextStyle(
color: const Color(0xFF011234).withOpacity(0.6), color: const Color(0xFF011234).withOpacity(0.6),
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
@ -277,9 +274,9 @@ class PlusScreen extends StatelessWidget {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Text( Text(
'Mire költitek a pénzt?', 'money'.i18n,
style: TextStyle( style: const TextStyle(
fontSize: 16.6, fontSize: 16.6,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.black, color: Colors.black,
@ -296,9 +293,8 @@ class PlusScreen extends StatelessWidget {
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
children: [ children: [
const TextSpan( TextSpan(
text: text: 'm_1'.i18n,
'A támogatásokból kapott pénz elsősorban az Apple',
), ),
WidgetSpan( WidgetSpan(
child: Transform.translate( child: Transform.translate(
@ -314,9 +310,8 @@ class PlusScreen extends StatelessWidget {
), ),
), ),
), ),
const TextSpan( TextSpan(
text: text: 'm_2'.i18n,
' Developer Program évi \$100-os díját, valamint az API mögött álló szerverek és a reFilc domain címek árát fedezi, a maradékot egyéb fejlesztésekre, fejlesztői fagyizásra fordítjuk.',
), ),
], ],
), ),
@ -349,9 +344,9 @@ class PlusScreen extends StatelessWidget {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const Text( Text(
'Még mindig nyílt a forráskód?', 'open'.i18n,
style: TextStyle( style: const TextStyle(
fontSize: 16.6, fontSize: 16.6,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.black, color: Colors.black,
@ -361,7 +356,7 @@ class PlusScreen extends StatelessWidget {
height: 14.0, height: 14.0,
), ),
Text( Text(
'Igen, a reFilc teljesen nyílt forráskódú, és ez így is fog maradni. A reFilc+ funkcióinak forráskódjához bármely támogatónk hozzáférhet, ha ezt Discord-on kérelmezi.', 'o_1'.i18n,
style: TextStyle( style: TextStyle(
color: color:
const Color(0xFF011234).withOpacity(0.6), const Color(0xFF011234).withOpacity(0.6),
@ -378,7 +373,7 @@ class PlusScreen extends StatelessWidget {
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 12.0), padding: const EdgeInsets.symmetric(horizontal: 12.0),
child: Text( child: Text(
'Magyarázatok', 'desc'.i18n,
style: TextStyle( style: TextStyle(
color: const Color(0xFF011234).withOpacity(0.6), color: const Color(0xFF011234).withOpacity(0.6),
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
@ -431,11 +426,11 @@ class PlusScreen extends StatelessWidget {
const SizedBox( const SizedBox(
width: 14.0, width: 14.0,
), ),
const Expanded( Expanded(
child: Text( child: Text(
'A szolgáltatás legalacsonyabb szintje olcsóbb a legtöbb ismert előfizetésnél, viszont előfordulhatnak kivételek.', 'cheaper'.i18n,
maxLines: 5, maxLines: 5,
style: TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 14.4, fontSize: 14.4,
height: 1.3, height: 1.3,
@ -470,11 +465,11 @@ class PlusScreen extends StatelessWidget {
const SizedBox( const SizedBox(
width: 14.0, width: 14.0,
), ),
const Expanded( Expanded(
child: Text( child: Text(
'A "QwIT" a "QwIT Development" rövid neve, ez a fejlesztői csapat neve, mely a reFilc és egyéb projektek mögött áll.', 'qwit'.i18n,
maxLines: 5, maxLines: 5,
style: TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 14.4, fontSize: 14.4,
height: 1.3, height: 1.3,
@ -509,11 +504,11 @@ class PlusScreen extends StatelessWidget {
const SizedBox( const SizedBox(
width: 14.0, width: 14.0,
), ),
const Expanded( Expanded(
child: Text( child: Text(
'Az "Apple" az Apple Inc. védjegye.', 'apple'.i18n,
maxLines: 5, maxLines: 5,
style: TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 14.4, fontSize: 14.4,
height: 1.3, height: 1.3,
@ -548,11 +543,11 @@ class PlusScreen extends StatelessWidget {
const SizedBox( const SizedBox(
width: 14.0, width: 14.0,
), ),
const Expanded( Expanded(
child: Text( child: Text(
'Az árak euróban vannak feltüntetve, így az árfolyam befolyásolja, hogy mennyit kell fizetned a szolgáltatásért. 1 EUR ≈ 390 Ft', 'eur'.i18n,
maxLines: 5, maxLines: 5,
style: TextStyle( style: const TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 14.4, fontSize: 14.4,
height: 1.3, height: 1.3,

View File

@ -0,0 +1,39 @@
import 'package:i18n_extension/i18n_extension.dart';
extension SettingsLocalization on String {
static final _t = Translations.byLocale("hu_hu") +
{
"en_en": {},
"hu_hu": {
"even_more_cheaper": "Még több reFilc, olcsóbban,\nmint bármi más!",
"support_1": "Támogasd a QwIT",
"support_2": " csapatát, és szerezz cserébe pár kényelmes jutalmat!",
"tier_rfp":
"Több személyre szabás, több fiók, egyszerű feladatfeljegyzés.",
"tier_rfpgold":
"Férj hozzá még több funkcióhoz, használj még több profilt és tedd egyszerűbbé mindennapjaid.",
"faq": "Gyakori kérdések",
"money": "Mire költitek a pénzt?",
"m_1": "A támogatásokból kapott pénz elsősorban az Apple",
"m_2":
" Developer Program évi \$100-os díját, valamint az API mögött álló szerverek és a reFilc domain címek árát fedezi, a maradékot egyéb fejlesztésekre, fejlesztői fagyizásra fordítjuk.",
"open": "Még mindig nyílt a forráskód?",
"o_1":
"Igen, a reFilc teljesen nyílt forráskódú, és ez így is fog maradni. A reFilc+ funkcióinak forráskódjához bármely támogatónk hozzáférhet, ha ezt Discord-on kérelmezi.",
"desc": "Magyarázatok",
"cheaper":
"A szolgáltatás legalacsonyabb szintje olcsóbb a legtöbb ismert előfizetésnél, viszont előfordulhatnak kivételek.",
"qwit":
"A \"QwIT\" a \"QwIT Development\" rövid neve, ez a fejlesztői csapat neve, mely a reFilc és egyéb projektek mögött áll.",
"apple": "Az \"Apple\" az Apple Inc. védjegye.",
"eur":
"Az árak euróban vannak feltüntetve, így az árfolyam befolyásolja, hogy mennyit kell fizetned a szolgáltatásért. 1 EUR ≈ 390 Ft",
},
"de_de": {},
};
String get i18n => localize(this, _t);
String fill(List<Object> params) => localizeFill(this, params);
String plural(int value) => localizePlural(value, this, _t);
String version(Object modifier) => localizeVersion(modifier, this, _t);
}

@ -1 +1 @@
Subproject commit 339fb6023ee474746b00c29a33f038d8cdff4262 Subproject commit a356f5db6403b3ba696009777b7ce65983c926e9