icon,权限

This commit is contained in:
ytc1012
2025-11-24 18:36:55 +08:00
parent 57ef852863
commit 005ad8ddf2
137 changed files with 1597 additions and 167 deletions

View File

@@ -142,6 +142,22 @@ class _SettingsScreenState extends State<SettingsScreen> {
},
),
const Divider(color: AppColors.divider),
ListTile(
contentPadding: EdgeInsets.zero,
title: Text(
l10n.termsOfService,
style: AppTextStyles.bodyText,
),
trailing: const Icon(
Icons.arrow_forward_ios,
size: 16,
color: AppColors.textSecondary,
),
onTap: () {
_showTermsOfService();
},
),
const Divider(color: AppColors.divider),
ListTile(
contentPadding: EdgeInsets.zero,
title: Text(
@@ -385,6 +401,29 @@ class _SettingsScreenState extends State<SettingsScreen> {
);
}
void _showTermsOfService() {
final l10n = AppLocalizations.of(context)!;
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text(l10n.termsOfServiceTitle),
content: SingleChildScrollView(
child: Text(
l10n.termsOfServiceContent,
style: AppTextStyles.bodyText,
),
),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: Text(l10n.close),
),
],
),
);
}
void _showAboutDialog() {
final l10n = AppLocalizations.of(context)!;