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