1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Can set location & email visibility

This commit is contained in:
2021-04-17 08:30:00 +02:00
parent f995003306
commit 4f72b59265
5 changed files with 57 additions and 21 deletions

View File

@ -164,6 +164,7 @@ class _GeneralAccountSettingsScreenState
_updateSettings();
},
switchValue: _settings.allowPostsFromFriends,
titleMaxLines: 2,
),
// Make friends list public
@ -176,6 +177,16 @@ class _GeneralAccountSettingsScreenState
switchValue: _settings.publicFriendsList,
),
// Make email address public
SettingsTile.switchTile(
title: tr("Make your email address public"),
onToggle: (v) {
_settings.publicEmail = v;
_updateSettings();
},
switchValue: _settings.publicEmail,
),
// Personal website
TextEditSettingsTile(
title: tr("Personal website URL (optional)"),
@ -188,6 +199,18 @@ class _GeneralAccountSettingsScreenState
allowEmptyValues: true,
),
// Location
TextEditSettingsTile(
title: tr("Location (optional)"),
currValue: _settings.location ?? "",
onChanged: (v) {
_settings.location = v;
_updateSettings();
},
maxLength: srvConfig.accountInformationPolicy.maxLocationLength,
allowEmptyValues: true,
),
// Public notes
TextEditSettingsTile(
title: tr("Public note (optional)"),