From 79458759c646419a7d735b6cc45c1770ed56b995 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 27 Apr 2021 11:56:00 +0200 Subject: [PATCH] Fix theming issue --- lib/ui/routes/settings/account_privacy_settings.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ui/routes/settings/account_privacy_settings.dart b/lib/ui/routes/settings/account_privacy_settings.dart index 5bd16fe..ed6a732 100644 --- a/lib/ui/routes/settings/account_privacy_settings.dart +++ b/lib/ui/routes/settings/account_privacy_settings.dart @@ -8,6 +8,7 @@ import 'package:comunic/ui/dialogs/multi_choices_dialog.dart'; import 'package:comunic/ui/widgets/async_screen_widget.dart'; import 'package:comunic/ui/widgets/settings/header_spacer_section.dart'; import 'package:comunic/ui/widgets/settings/multi_choices_settings_tile.dart'; +import 'package:comunic/utils/flutter_utils.dart'; import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/ui_utils.dart'; import 'package:flutter/cupertino.dart'; @@ -50,8 +51,10 @@ class _AccountPrivacySettingsState extends State { SettingsSection(title: tr("Danger zone"), tiles: [ SettingsTile( title: tr("Delete your account"), - subtitle: tr( - "Permanently delete your account and all data related to it."), + subtitle: isIOS + ? null + : tr( + "Permanently delete your account and all data related to it."), onPressed: (_) => _deleteAccount(), subtitleMaxLines: 2, )