关怀模式
This commit is contained in:
@@ -52,6 +52,7 @@ class PrivacyPolicyContent extends StatelessWidget {
|
||||
_buildPermissionItem('网络权限', '用于获取诗词内容和更新应用信息'),
|
||||
_buildPermissionItem('震动权限', '用于在执行操作时提供反馈提示'),
|
||||
_buildPermissionItem('分享能力', '调用系统分享功能,分享您的笔记、收藏等本地数据'),
|
||||
_buildPermissionItem('设备标识', '获取唯一标识设备的设备ID,确保用户数据安全。'),
|
||||
const SizedBox(height: 24),
|
||||
_buildSectionTitle('3. 管理您的个人信息'),
|
||||
const SizedBox(height: 16),
|
||||
@@ -125,6 +126,8 @@ class PrivacyPolicyContent extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _buildBulletPoint(String text) {
|
||||
final themeController = Get.find<ThemeController>();
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
child: Row(
|
||||
@@ -135,7 +138,7 @@ class PrivacyPolicyContent extends StatelessWidget {
|
||||
height: 6,
|
||||
margin: const EdgeInsets.only(top: 6, left: 8, right: 12),
|
||||
decoration: BoxDecoration(
|
||||
color: AppConstants.primaryColor,
|
||||
color: primaryColor,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
),
|
||||
@@ -487,6 +490,7 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
Widget build(BuildContext context) {
|
||||
return Obx(() {
|
||||
final isDark = _themeController.isDarkMode;
|
||||
final primaryColor = _themeController.currentThemeColor;
|
||||
return Scaffold(
|
||||
backgroundColor: isDark
|
||||
? const Color(0xFF1A1A1A)
|
||||
@@ -494,19 +498,16 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
appBar: AppBar(
|
||||
title: Text(
|
||||
'隐私与协议',
|
||||
style: TextStyle(
|
||||
color: AppConstants.primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
style: TextStyle(color: primaryColor, fontWeight: FontWeight.bold),
|
||||
),
|
||||
backgroundColor: isDark ? const Color(0xFF2A2A2A) : Colors.white,
|
||||
elevation: 0,
|
||||
centerTitle: true,
|
||||
bottom: TabBar(
|
||||
controller: _tabController,
|
||||
labelColor: AppConstants.primaryColor,
|
||||
labelColor: primaryColor,
|
||||
unselectedLabelColor: isDark ? Colors.grey[400] : Colors.grey[600],
|
||||
indicatorColor: AppConstants.primaryColor,
|
||||
indicatorColor: primaryColor,
|
||||
indicatorWeight: 2,
|
||||
tabs: const [
|
||||
Tab(text: '隐私政策'),
|
||||
@@ -514,12 +515,12 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
],
|
||||
),
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.arrow_back, color: AppConstants.primaryColor),
|
||||
icon: Icon(Icons.arrow_back, color: primaryColor),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: Icon(Icons.link, color: AppConstants.primaryColor),
|
||||
icon: Icon(Icons.link, color: primaryColor),
|
||||
onPressed: () => _showOnlineLinkDialog(isDark),
|
||||
tooltip: '在线版本',
|
||||
),
|
||||
@@ -537,6 +538,7 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
}
|
||||
|
||||
void _showOnlineLinkDialog(bool isDark) {
|
||||
final primaryColor = _themeController.currentThemeColor;
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
@@ -544,7 +546,7 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||
title: Row(
|
||||
children: [
|
||||
Icon(Icons.public, color: AppConstants.primaryColor),
|
||||
Icon(Icons.public, color: primaryColor),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
'在线版本',
|
||||
@@ -577,7 +579,7 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
'https://poe.vogov.cn/privacy.html',
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: AppConstants.primaryColor,
|
||||
color: primaryColor,
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
),
|
||||
@@ -609,7 +611,7 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: const Text('链接已复制到剪贴板'),
|
||||
backgroundColor: AppConstants.primaryColor,
|
||||
backgroundColor: primaryColor,
|
||||
behavior: SnackBarBehavior.floating,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
@@ -620,7 +622,7 @@ class _PrivacyPageState extends State<PrivacyPage>
|
||||
icon: const Icon(Icons.copy, size: 18),
|
||||
label: const Text('复制链接'),
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppConstants.primaryColor,
|
||||
backgroundColor: primaryColor,
|
||||
foregroundColor: Colors.white,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
|
||||
Reference in New Issue
Block a user