mod: remove relation 3

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-22 20:29:49 +08:00
parent 246061c69e
commit 65404ce356
2 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ class MemberControllerNew extends CommonDataController<Data, dynamic>
? data.relSpecial == 1
? -10
: data.card?.relation?.status ?? 2
: data.card?.relation?.status ?? 0;
: 0;
}
tab2 = data.tab2;
live = data.live;

View File

@@ -375,7 +375,7 @@ class UserInfoCard extends StatelessWidget {
child: FilledButton.tonal(
onPressed: onFollow,
style: FilledButton.styleFrom(
backgroundColor: relation != 0 && relation != 3
backgroundColor: relation != 0
? Theme.of(context).colorScheme.onInverseSurface
: null,
visualDensity: const VisualDensity(
@@ -385,13 +385,13 @@ class UserInfoCard extends StatelessWidget {
),
child: Text.rich(
style: TextStyle(
color: relation != 0 && relation != 3
color: relation != 0
? Theme.of(context).colorScheme.outline
: null,
),
TextSpan(
children: [
if (relation != 0 && relation != 128 && relation != 3)
if (relation != 0 && relation != 128)
WidgetSpan(
alignment: PlaceholderAlignment.top,
child: Icon(
@@ -407,7 +407,7 @@ class UserInfoCard extends StatelessWidget {
0 => '关注',
1 => '悄悄关注',
2 => '已关注',
3 => '回关',
// 3 => '回关',
4 || 6 => '已互关',
128 => '移除黑名单',
-10 => '特别关注', // 该状态码并不是官方状态码