odoo_loyalty_app/lib/widgets/agreement_dialog.dart

103 lines
3.1 KiB
Dart

import 'package:flutter/material.dart';
import '../theme/app_theme.dart';
class AgreementDialog extends StatelessWidget {
final String title;
final String content;
const AgreementDialog({
super.key,
required this.title,
required this.content,
});
static void show(BuildContext context, String title, String content) {
showDialog(
context: context,
builder: (context) => AgreementDialog(title: title, content: content),
);
}
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Text(
title,
style: const TextStyle(
color: AppTheme.onSurface,
fontWeight: FontWeight.bold,
),
),
content: SizedBox(
width: double.maxFinite,
child: SingleChildScrollView(
child: Text(
content,
style: const TextStyle(
color: AppTheme.onSurfaceVariant,
fontSize: 14,
height: 1.5,
),
),
),
),
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: const Text(
'Close',
style: TextStyle(
color: AppTheme.primary,
fontWeight: FontWeight.bold,
),
),
),
],
);
}
}
class AgreementTexts {
static const String termsAndConditions = '''
1. Acceptance of Terms
By registering and using the Mie Mapan Loyalty App, you agree to comply with and be bound by these Terms and Conditions.
2. Membership Eligibility
Membership is open to individuals aged 12 and above. Only one account per unique phone number is permitted.
3. Loyalty Points and Tiers
- Points are earned on qualified food and beverage purchases at Mie Mapan.
- The default starter tier is "Membership Silver".
- Points have a validity period and are non-transferable.
- Tiers are updated automatically based on yearly spending.
4. Account Management
- You are responsible for keeping your login credentials secure.
- Account information must be kept accurate.
5. Modifications to Service
Mie Mapan reserves the right to modify, suspend, or terminate the loyalty program or any rewards at any time with or without prior notice.
''';
static const String privacyPolicy = '''
1. Information We Collect
We collect the following personal information to operate the loyalty program:
- Full Name
- Phone Number (used as your unique login and for contact)
- Date of Birth (used for birthday rewards and age verification)
- Gender (used for personalized offers)
2. How We Use Your Data
Your data is used solely to:
- Maintain your loyalty account, points history, and membership level.
- Authenticate your login sessions in the app.
- Provide custom rewards and promotions.
3. Data Sharing and Protection
We do not share your personal data with third parties. Your credentials are securely stored using industry-standard hashing algorithms in our backend.
4. Account Deletion and GDPR
You have the right to request deletion of your account at any time. Account deletion is permanent and will result in the forfeiture of all accumulated points and membership tier history.
''';
}