diff --git a/lib/models/general_settings.dart b/lib/models/general_settings.dart index bd3a163..7508ace 100644 --- a/lib/models/general_settings.dart +++ b/lib/models/general_settings.dart @@ -15,7 +15,7 @@ class GeneralSettings { bool allowComunicEmails; bool publicFriendsList; final String virtualDirectory; - final String personalWebsite; + String personalWebsite; final String publicNote; GeneralSettings({ diff --git a/lib/ui/routes/account_settings/general_account_settings.dart b/lib/ui/routes/account_settings/general_account_settings.dart index 418d1f2..b9a0218 100644 --- a/lib/ui/routes/account_settings/general_account_settings.dart +++ b/lib/ui/routes/account_settings/general_account_settings.dart @@ -6,6 +6,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/text_settings_edit_tile.dart'; import 'package:comunic/utils/account_utils.dart'; +import 'package:comunic/utils/input_utils.dart'; import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/ui_utils.dart'; import 'package:flutter/material.dart'; @@ -188,6 +189,18 @@ class __GeneralAccountSettingsBodyState }, switchValue: _settings.publicFriendsList, ), + + // Personal website + TextEditSettingsTile( + title: tr("Personal website URL"), + currValue: _settings.personalWebsite, + onChanged: (v) { + _settings.personalWebsite = v; + _updateSettings(); + }, + checkInput: (s) => validateUrl(s), + allowEmptyValues: true, + ) ]; }