197 lines
6.4 KiB
Dart
197 lines
6.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class PrivacyPolicyScreen extends StatelessWidget {
|
|
const PrivacyPolicyScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: const Color(0xfff8f9fa),
|
|
appBar: AppBar(
|
|
title: const Text(
|
|
'Privacy Policy',
|
|
style: TextStyle(fontWeight: FontWeight.bold),
|
|
),
|
|
backgroundColor: Colors.red,
|
|
foregroundColor: Colors.white,
|
|
elevation: 0,
|
|
),
|
|
body: SingleChildScrollView(
|
|
padding: const EdgeInsets.all(20),
|
|
child: Column(
|
|
children: [
|
|
// Header
|
|
Container(
|
|
width: double.infinity,
|
|
padding: const EdgeInsets.all(20),
|
|
decoration: BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topLeft,
|
|
end: Alignment.bottomRight,
|
|
colors: [Colors.red.shade50, Colors.white],
|
|
),
|
|
borderRadius: BorderRadius.circular(20),
|
|
border: Border.all(color: Colors.red.withOpacity(0.1)),
|
|
),
|
|
child: Column(
|
|
children: [
|
|
Container(
|
|
padding: const EdgeInsets.all(15),
|
|
decoration: BoxDecoration(
|
|
color: Colors.red.withOpacity(0.1),
|
|
shape: BoxShape.circle,
|
|
),
|
|
child: const Icon(
|
|
Icons.privacy_tip,
|
|
size: 40,
|
|
color: Colors.red,
|
|
),
|
|
),
|
|
const SizedBox(height: 12),
|
|
const Text(
|
|
'Kebijakan Privasi',
|
|
style: TextStyle(
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold,
|
|
color: Color(0xff2d2d2d),
|
|
),
|
|
),
|
|
const SizedBox(height: 4),
|
|
Text(
|
|
'Terakhir diperbarui: 2026',
|
|
style: TextStyle(
|
|
fontSize: 12,
|
|
color: Colors.grey.shade500,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
const SizedBox(height: 20),
|
|
|
|
// Content Cards
|
|
_buildPolicyCard(
|
|
icon: Icons.data_usage,
|
|
title: 'Pengumpulan Data',
|
|
description:
|
|
'Aplikasi ini mengumpulkan data seperti email, nama, dan gambar profil '
|
|
'untuk keperluan autentikasi dan personalisasi pengguna.',
|
|
),
|
|
_buildPolicyCard(
|
|
icon: Icons.shield,
|
|
title: 'Keamanan Data',
|
|
description:
|
|
'Data Anda aman dan tidak akan dibagikan kepada pihak ketiga '
|
|
'tanpa izin pengguna. Kami menggunakan enkripsi untuk melindungi data Anda.',
|
|
),
|
|
_buildPolicyCard(
|
|
icon: Icons.visibility,
|
|
title: 'Penggunaan Data',
|
|
description: 'Data yang dikumpulkan hanya digunakan untuk: '
|
|
'\n• Autentikasi pengguna\n• Personalisasi profil\n• Peningkatan layanan',
|
|
),
|
|
_buildPolicyCard(
|
|
icon: Icons.check_circle,
|
|
title: 'Persetujuan Pengguna',
|
|
description:
|
|
'Dengan menggunakan aplikasi ini, pengguna menyetujui '
|
|
'kebijakan privasi yang telah ditetapkan.',
|
|
),
|
|
_buildPolicyCard(
|
|
icon: Icons.contact_support,
|
|
title: 'Kontak',
|
|
description: 'Jika ada pertanyaan tentang kebijakan privasi, '
|
|
'silakan hubungi kami di support@kopicare.com',
|
|
),
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
// Footer
|
|
Container(
|
|
padding: const EdgeInsets.all(16),
|
|
decoration: BoxDecoration(
|
|
color: Colors.red.shade50,
|
|
borderRadius: BorderRadius.circular(15),
|
|
),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
const Icon(Icons.security, color: Colors.red, size: 16),
|
|
const SizedBox(width: 8),
|
|
Text(
|
|
'Data Anda aman bersama kami',
|
|
style: TextStyle(
|
|
fontSize: 12,
|
|
color: Colors.red.shade700,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
Widget _buildPolicyCard({
|
|
required IconData icon,
|
|
required String title,
|
|
required String description,
|
|
}) {
|
|
return Container(
|
|
margin: const EdgeInsets.only(bottom: 16),
|
|
padding: const EdgeInsets.all(16),
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.circular(20),
|
|
boxShadow: [
|
|
BoxShadow(
|
|
blurRadius: 10,
|
|
color: Colors.red.withOpacity(0.05),
|
|
offset: const Offset(0, 4),
|
|
),
|
|
],
|
|
),
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Container(
|
|
padding: const EdgeInsets.all(10),
|
|
decoration: BoxDecoration(
|
|
color: Colors.red.withOpacity(0.1),
|
|
borderRadius: BorderRadius.circular(15),
|
|
),
|
|
child: Icon(icon, color: Colors.red, size: 22),
|
|
),
|
|
const SizedBox(width: 14),
|
|
Expanded(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
title,
|
|
style: const TextStyle(
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.bold,
|
|
color: Color(0xff2d2d2d),
|
|
),
|
|
),
|
|
const SizedBox(height: 6),
|
|
Text(
|
|
description,
|
|
style: const TextStyle(
|
|
fontSize: 13,
|
|
color: Color(0xff666666),
|
|
height: 1.4,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|