changed subscription document acceptance
This commit is contained in:
parent
6634010b97
commit
0ec33f8631
@ -1,6 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:refilc/models/settings.dart';
|
import 'package:refilc/models/settings.dart';
|
||||||
|
import 'package:refilc_mobile_ui/common/action_button.dart';
|
||||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||||
import 'package:refilc_plus/ui/mobile/plus/activation_view/activation_view.dart';
|
import 'package:refilc_plus/ui/mobile/plus/activation_view/activation_view.dart';
|
||||||
import 'package:refilc_mobile_ui/plus/plus_screen.i18n.dart';
|
import 'package:refilc_mobile_ui/plus/plus_screen.i18n.dart';
|
||||||
@ -39,18 +40,18 @@ class PlusPlanCard extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (!docsAccepted) {
|
// if (!docsAccepted) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
|
// ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
|
||||||
content: Text(
|
// content: Text(
|
||||||
"El kell fogadnod az ÁSZF-et és az Adatkezelési Tájékoztatót!",
|
// "El kell fogadnod az ÁSZF-et és az Adatkezelési Tájékoztatót!",
|
||||||
style:
|
// style:
|
||||||
TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
|
// TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
|
||||||
),
|
// ),
|
||||||
backgroundColor: Colors.white,
|
// backgroundColor: Colors.white,
|
||||||
));
|
// ));
|
||||||
|
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (Provider.of<SettingsProvider>(context, listen: false).xFilcId ==
|
if (Provider.of<SettingsProvider>(context, listen: false).xFilcId ==
|
||||||
"none") {
|
"none") {
|
||||||
@ -84,9 +85,29 @@ class PlusPlanCard extends StatelessWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
|
showDialog(
|
||||||
return PremiumActivationView(product: id);
|
context: context,
|
||||||
}));
|
builder: (context) => AlertDialog(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12.0)),
|
||||||
|
title: Text('docs'.i18n),
|
||||||
|
content: Text('docs_acceptance'.i18n),
|
||||||
|
actions: [
|
||||||
|
ActionButton(
|
||||||
|
label: "next".i18n,
|
||||||
|
onTap: () {
|
||||||
|
// pop dialog
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
// start payment process
|
||||||
|
Navigator.of(context)
|
||||||
|
.push(MaterialPageRoute(builder: (context) {
|
||||||
|
return PremiumActivationView(product: id);
|
||||||
|
}));
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
@ -420,41 +420,41 @@ class PlusScreenState extends State<PlusScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
// aszf warning
|
// aszf warning
|
||||||
const SizedBox(
|
// const SizedBox(
|
||||||
height: 18.0,
|
// height: 18.0,
|
||||||
),
|
// ),
|
||||||
Container(
|
// Container(
|
||||||
decoration: BoxDecoration(
|
// decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(16.0),
|
// borderRadius: BorderRadius.circular(16.0),
|
||||||
border: Border.all(
|
// border: Border.all(
|
||||||
color: Colors.black.withOpacity(0.2),
|
// color: Colors.black.withOpacity(0.2),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
child: CheckboxListTile(
|
// child: CheckboxListTile(
|
||||||
side:
|
// side:
|
||||||
const BorderSide(color: Colors.black, width: 2.0),
|
// const BorderSide(color: Colors.black, width: 2.0),
|
||||||
contentPadding:
|
// contentPadding:
|
||||||
const EdgeInsets.only(left: 15.0, right: 10.0),
|
// const EdgeInsets.only(left: 15.0, right: 10.0),
|
||||||
value: docsAccepted,
|
// value: docsAccepted,
|
||||||
onChanged: (value) {
|
// onChanged: (value) {
|
||||||
setState(() {
|
// setState(() {
|
||||||
docsAccepted = !docsAccepted;
|
// docsAccepted = !docsAccepted;
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
// title: Text(
|
// // title: Text(
|
||||||
// 'show_lifetime'.i18n,
|
// // 'show_lifetime'.i18n,
|
||||||
// style: const TextStyle(
|
// // style: const TextStyle(
|
||||||
// color: Colors.black,
|
// // color: Colors.black,
|
||||||
// fontWeight: FontWeight.w500,
|
// // fontWeight: FontWeight.w500,
|
||||||
// ),
|
// // ),
|
||||||
// ),
|
// // ),
|
||||||
subtitle: const Text(
|
// subtitle: const Text(
|
||||||
'Elfogadod a reFilc előfizetésekkel kapcsolatos Általános Szerződési Feltételeit (elérhető az alábbi link-en: filc.one/pay-terms), valamint Adatkezelési Tájékoztatónkat (elérhető az alábbi link-en: filc.one/pay-privacy)?',
|
// 'Elfogadod a reFilc előfizetésekkel kapcsolatos Általános Szerződési Feltételeit (elérhető az alábbi link-en: filc.one/pay-terms), valamint Adatkezelési Tájékoztatónkat (elérhető az alábbi link-en: filc.one/pay-privacy)?',
|
||||||
textAlign: TextAlign.start,
|
// textAlign: TextAlign.start,
|
||||||
style: TextStyle(color: Colors.black),
|
// style: TextStyle(color: Colors.black),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
// CheckboxListTile(value: false, onChanged: onChanged)
|
// CheckboxListTile(value: false, onChanged: onChanged)
|
||||||
// Padding(
|
// Padding(
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
// padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||||
|
@ -47,13 +47,19 @@ extension SettingsLocalization on String {
|
|||||||
"rfp_16": "Private leaks and informations about upcoming features",
|
"rfp_16": "Private leaks and informations about upcoming features",
|
||||||
"rfp_17": "Grade exporting",
|
"rfp_17": "Grade exporting",
|
||||||
"rfp_18": "Viewing exported grades",
|
"rfp_18": "Viewing exported grades",
|
||||||
|
// docs popup
|
||||||
|
"docs": "Documents",
|
||||||
|
"docs_acceptance":
|
||||||
|
"By pressing the \"Next\" button, you accept reFilc's Terms and Conditions for subscriptions (available at the following link: filc.one/pay-terms) and our Privacy Policy (available at the following link: filc.one/pay-privacy).",
|
||||||
|
"next": "Next",
|
||||||
// other
|
// other
|
||||||
"and": " and ",
|
"and": " and ",
|
||||||
"every": "Every ",
|
"every": "Every ",
|
||||||
"benefit": " benefit",
|
"benefit": " benefit",
|
||||||
"show_lifetime": "Show Lifetime Plans",
|
"show_lifetime": "Show Lifetime Plans",
|
||||||
"more_soon": "More coming soon...",
|
"more_soon": "More coming soon...",
|
||||||
"faq_dc": "To redeem your benefits, contact us on Discord in DMs!",
|
"faq_dc":
|
||||||
|
"To redeem your Discord-related benefits, contact us on Discord in DMs!",
|
||||||
"reactivate": "Reactivate Existing Subscription",
|
"reactivate": "Reactivate Existing Subscription",
|
||||||
},
|
},
|
||||||
"hu_hu": {
|
"hu_hu": {
|
||||||
@ -100,6 +106,11 @@ extension SettingsLocalization on String {
|
|||||||
"rfp_16": "Privát betekintések és információk közelgő újításokról",
|
"rfp_16": "Privát betekintések és információk közelgő újításokról",
|
||||||
"rfp_17": "Jegy exportálás",
|
"rfp_17": "Jegy exportálás",
|
||||||
"rfp_18": "Exportált jegyek megtekintése",
|
"rfp_18": "Exportált jegyek megtekintése",
|
||||||
|
// docs popup
|
||||||
|
"docs": "Dokumentumok",
|
||||||
|
"docs_acceptance":
|
||||||
|
"A \"Tovább\" gombra kattintva elfogadod a reFilc előfizetésekkel kapcsolatos Általános Szerződési Feltételeit (elérhető az alábbi link-en: filc.one/pay-terms), valamint Adatkezelési Tájékoztatónkat (elérhető az alábbi link-en: filc.one/pay-privacy).",
|
||||||
|
"next": "Tovább",
|
||||||
// other
|
// other
|
||||||
"and": " és ",
|
"and": " és ",
|
||||||
"every": "Minden ",
|
"every": "Minden ",
|
||||||
@ -107,7 +118,7 @@ extension SettingsLocalization on String {
|
|||||||
"show_lifetime": "Örökre szóló csomagok",
|
"show_lifetime": "Örökre szóló csomagok",
|
||||||
"more_soon": "Hamarosan mégtöbb finomság...",
|
"more_soon": "Hamarosan mégtöbb finomság...",
|
||||||
"faq_dc":
|
"faq_dc":
|
||||||
"Az előnyök beváltásához írj nekünk Discord-on privát üzenetet!",
|
"A Discord-al kapcsolatos előnyök beváltásához írj nekünk Discord-on privát üzenetet!",
|
||||||
"reactivate": "Meglévő előfizetés újraaktiválása",
|
"reactivate": "Meglévő előfizetés újraaktiválása",
|
||||||
},
|
},
|
||||||
"de_de": {
|
"de_de": {
|
||||||
@ -156,6 +167,11 @@ extension SettingsLocalization on String {
|
|||||||
"rfp_16": "Private Leaks und Informationen über kommende Funktionen",
|
"rfp_16": "Private Leaks und Informationen über kommende Funktionen",
|
||||||
"rfp_17": "Notenexport",
|
"rfp_17": "Notenexport",
|
||||||
"rfp_18": "Anzeigen exportierter Noten",
|
"rfp_18": "Anzeigen exportierter Noten",
|
||||||
|
// docs popup
|
||||||
|
"docs": "Dokumente",
|
||||||
|
"docs_acceptance":
|
||||||
|
"Durch Drücken der Schaltfläche \"Weiter\" akzeptieren Sie die Allgemeinen Geschäftsbedingungen von reFilc für Abonnements (verfügbar unter folgendem Link: filc.one/pay-terms) und unsere Datenschutzrichtlinie (verfügbar unter folgendem Link: filc.one/pay-privacy).",
|
||||||
|
"next": "Weiter",
|
||||||
// other
|
// other
|
||||||
"and": " und ",
|
"and": " und ",
|
||||||
"every": "Jeder ",
|
"every": "Jeder ",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user