mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Can change personal website URL
This commit is contained in:
parent
cd355f84cc
commit
f32ee89924
@ -15,7 +15,7 @@ class GeneralSettings {
|
||||
bool allowComunicEmails;
|
||||
bool publicFriendsList;
|
||||
final String virtualDirectory;
|
||||
final String personalWebsite;
|
||||
String personalWebsite;
|
||||
final String publicNote;
|
||||
|
||||
GeneralSettings({
|
||||
|
@ -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,
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user