1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-20 00:35:17 +00:00

Add links to privacy policy and terms of use of the terms

This commit is contained in:
2021-04-17 09:09:03 +02:00
parent c2ce5ca05f
commit 95a38e9e8d
3 changed files with 14 additions and 0 deletions

View File

@ -1,10 +1,12 @@
import 'package:comunic/helpers/preferences_helper.dart';
import 'package:comunic/helpers/server_config_helper.dart';
import 'package:comunic/ui/widgets/async_screen_widget.dart';
import 'package:comunic/ui/widgets/settings/header_spacer_section.dart';
import 'package:comunic/utils/intl_utils.dart';
import 'package:comunic/utils/ui_utils.dart';
import 'package:flutter/material.dart';
import 'package:settings_ui/settings_ui.dart';
import 'package:url_launcher/url_launcher.dart';
/// Application settings
///
@ -57,6 +59,14 @@ class _ApplicationSettingsState extends State<ApplicationSettings> {
SettingsSection _buildGeneralSection() => SettingsSection(
title: tr("General"),
tiles: [
SettingsTile(
title: tr("Privacy policy"),
onPressed: (c) => launch(srvConfig.privacyPolicyURL),
),
SettingsTile(
title: tr("Terms"),
onPressed: (c) => launch(srvConfig.termsURL),
),
SettingsTile(
title: tr("About this application"),
subtitle: tr("Learn more about us"),