dik smth was

This commit is contained in:
Kima 2024-05-01 18:26:06 +02:00
parent 57a4c65d2c
commit 05ded4da52
3 changed files with 63 additions and 1 deletions

View File

@ -18,6 +18,7 @@ class PlusPlanCard extends StatelessWidget {
this.active = false, this.active = false,
this.borderRadius, this.borderRadius,
this.features = const [], this.features = const [],
required this.docsAccepted,
}); });
final String iconPath; final String iconPath;
@ -30,11 +31,25 @@ class PlusPlanCard extends StatelessWidget {
final bool active; final bool active;
final BorderRadiusGeometry? borderRadius; final BorderRadiusGeometry? borderRadius;
final List<List<String>> features; final List<List<String>> features;
final bool docsAccepted;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
if (!docsAccepted) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
content: Text(
"El kell fogadnod az ÁSZF-et és az Adatkezelési Tájékoztatót!",
style:
TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
),
backgroundColor: Colors.white,
));
return;
}
if (Provider.of<PlusProvider>(context, listen: false).hasPremium) { if (Provider.of<PlusProvider>(context, listen: false).hasPremium) {
if (!active) { if (!active) {
launchUrl( launchUrl(

View File

@ -25,6 +25,7 @@ class PlusScreenState extends State<PlusScreen> {
} }
bool showLifetime = false; bool showLifetime = false;
bool docsAccepted = false;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -226,6 +227,7 @@ class PlusScreenState extends State<PlusScreen> {
['👑', 'rfp_15'.i18n], ['👑', 'rfp_15'.i18n],
['🔜', 'more_soon'.i18n], ['🔜', 'more_soon'.i18n],
], ],
docsAccepted: docsAccepted,
), ),
const SizedBox( const SizedBox(
height: 12.0, height: 12.0,
@ -259,6 +261,7 @@ class PlusScreenState extends State<PlusScreen> {
const ['🖋️', 'cap_tier_benefits'], const ['🖋️', 'cap_tier_benefits'],
['🔜', 'more_soon'.i18n], ['🔜', 'more_soon'.i18n],
], ],
docsAccepted: docsAccepted,
), ),
// const SizedBox( // const SizedBox(
// height: 8.0, // height: 8.0,
@ -373,6 +376,50 @@ class PlusScreenState extends State<PlusScreen> {
), ),
), ),
), ),
// aszf warning
const SizedBox(
height: 18.0,
),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16.0),
border: Border.all(
color: Colors.black.withOpacity(0.2),
),
),
child: CheckboxListTile(
contentPadding:
const EdgeInsets.only(left: 15.0, right: 10.0),
value: docsAccepted,
onChanged: (value) {
setState(() {
docsAccepted = !docsAccepted;
});
},
// title: Text(
// 'show_lifetime'.i18n,
// style: const TextStyle(
// color: Colors.black,
// fontWeight: FontWeight.w500,
// ),
// ),
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)?',
textAlign: TextAlign.start,
style: TextStyle(color: Colors.black),
),
),
),
// CheckboxListTile(value: false, onChanged: onChanged)
// Padding(
// padding: const EdgeInsets.symmetric(horizontal: 12.0),
// child: Text(
// 'A szolgáltatási csomag kiválasztásával (megérintés) 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.justify,
// style:
// TextStyle(color: Colors.black.withOpacity(0.9)),
// ),
// ),
// faq section // faq section
const SizedBox( const SizedBox(
height: 30.0, height: 30.0,

View File

@ -322,7 +322,7 @@ class SettingsScreenState extends State<SettingsScreen>
profilePictureString: user.picture, profilePictureString: user.picture,
backgroundColor: Theme.of(context) backgroundColor: Theme.of(context)
.colorScheme .colorScheme
.secondary, //!settings.presentationMode .tertiary, //!settings.presentationMode
//? ColorUtils.stringToColor(user.displayName ?? "?") //? ColorUtils.stringToColor(user.displayName ?? "?")
//: Theme.of(context).colorScheme.secondary, //: Theme.of(context).colorScheme.secondary,
), ),