mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: vipcolor
This commit is contained in:
@@ -65,7 +65,8 @@ class AuthorPanel extends StatelessWidget {
|
||||
// semanticsLabel: "Up主:${item.modules.moduleAuthor.name}",
|
||||
style: TextStyle(
|
||||
color: item.modules.moduleAuthor!.vip != null &&
|
||||
item.modules.moduleAuthor!.vip['status'] > 0
|
||||
item.modules.moduleAuthor!.vip['status'] > 0 &&
|
||||
item.modules.moduleAuthor!.vip['type'] == 2
|
||||
? Utils.vipColor
|
||||
: Theme.of(context).colorScheme.onSurface,
|
||||
fontSize: Theme.of(context).textTheme.titleSmall!.fontSize,
|
||||
|
||||
@@ -65,7 +65,9 @@ class AuthorPanelGrpc extends StatelessWidget {
|
||||
item.modules.first.moduleAuthor.author.name,
|
||||
// semanticsLabel: "Up主:${item.modules.moduleAuthor.name}",
|
||||
style: TextStyle(
|
||||
color: item.modules.first.moduleAuthor.author.vip.status > 0
|
||||
color: item.modules.first.moduleAuthor.author.vip.status >
|
||||
0 &&
|
||||
item.modules.first.moduleAuthor.author.vip.type == 2
|
||||
? Utils.vipColor
|
||||
: Theme.of(context).colorScheme.onSurface,
|
||||
fontSize: Theme.of(context).textTheme.titleSmall!.fontSize,
|
||||
|
||||
@@ -113,7 +113,8 @@ class UserInfoCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
if (card.officialVerify?.icon?.isNotEmpty == true)
|
||||
if (card.officialVerify?.icon?.isNotEmpty == true ||
|
||||
(card.vip?.vipStatus ?? -1) > 0)
|
||||
Positioned(
|
||||
top: 170,
|
||||
left: 80,
|
||||
@@ -123,13 +124,19 @@ class UserInfoCard extends StatelessWidget {
|
||||
shape: BoxShape.circle,
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
child: NetworkImgLayer(
|
||||
src: card.officialVerify?.icon,
|
||||
radius: null,
|
||||
width: 24,
|
||||
height: 24,
|
||||
quality: 100,
|
||||
),
|
||||
child: card.officialVerify?.icon?.isNotEmpty == true
|
||||
? NetworkImgLayer(
|
||||
src: card.officialVerify?.icon,
|
||||
radius: null,
|
||||
width: 24,
|
||||
height: 24,
|
||||
quality: 100,
|
||||
)
|
||||
: Image.asset(
|
||||
'assets/images/big-vip.png',
|
||||
width: 24,
|
||||
height: 24,
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
@@ -276,7 +283,10 @@ class UserInfoCard extends StatelessWidget {
|
||||
height: 1,
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: card.vip?.vipType == 2 ? Utils.vipColor : null,
|
||||
color: (card.vip?.vipStatus ?? -1) > 0 &&
|
||||
card.vip?.vipType == 2
|
||||
? Utils.vipColor
|
||||
: null,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -401,7 +401,9 @@ class _MemberPageState extends State<MemberPage>
|
||||
fontWeight: FontWeight.bold,
|
||||
color: _memberController.memberInfo.value.vip?.status !=
|
||||
null &&
|
||||
_memberController.memberInfo.value.vip!.status! > 0
|
||||
_memberController.memberInfo.value.vip!.status! >
|
||||
0 &&
|
||||
_memberController.memberInfo.value.vip!.type == 2
|
||||
? Utils.vipColor
|
||||
: Theme.of(context).colorScheme.onSurface,
|
||||
),
|
||||
|
||||
@@ -348,7 +348,12 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
||||
: videoItem['staff'][index].name,
|
||||
style: TextStyle(
|
||||
color:
|
||||
videoItem['staff'][index].vip.type == 2
|
||||
videoItem['staff'][index].vip.status >
|
||||
0 &&
|
||||
videoItem['staff'][index]
|
||||
.vip
|
||||
.type ==
|
||||
2
|
||||
? Utils.vipColor
|
||||
: null,
|
||||
),
|
||||
|
||||
@@ -204,7 +204,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
Text(
|
||||
replyItem.member.name,
|
||||
style: TextStyle(
|
||||
color: (replyItem.member.vipType == 2)
|
||||
color: (replyItem.member.vipStatus > 0 &&
|
||||
replyItem.member.vipType == 2)
|
||||
? Utils.vipColor
|
||||
: Theme.of(context).colorScheme.outline,
|
||||
fontSize: 13,
|
||||
|
||||
Reference in New Issue
Block a user