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 ? data.relSpecial == 1
? -10 ? -10
: data.card?.relation?.status ?? 2 : data.card?.relation?.status ?? 2
: data.card?.relation?.status ?? 0; : 0;
} }
tab2 = data.tab2; tab2 = data.tab2;
live = data.live; live = data.live;

View File

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