This commit is contained in:
2022-11-01 16:51:56 +08:00
parent 96d822cb3f
commit ec22583ebb
10 changed files with 119 additions and 45 deletions

View File

@@ -24,7 +24,7 @@ class UserSettingPrivacyPage extends StatelessWidget {
return LinkActionItem(
title: '允许通过搜索添加我为好友',
trailing: Switch(
value: _.userInfo.value.privacy,
value: _.userInfo.value.privacy ?? true,
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
onChanged: (e) {
_.togglePrivacy();