feat: remove fan

Closes #733

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-22 18:05:02 +08:00
parent 1f2f00d49c
commit 7856857cca
8 changed files with 139 additions and 70 deletions

View File

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