将评论区用户认证标识置于大会员标识上层;区分个人认证与机构认证,分别显示为黄色和蓝色

This commit is contained in:
VillagerTom
2024-06-09 12:39:43 +08:00
committed by orz12
parent 695b99de48
commit 2d466ce5ff

View File

@@ -94,23 +94,6 @@ class ReplyItem extends StatelessWidget {
type: 'avatar',
),
),
if (replyItem!.member!.officialVerify != null &&
replyItem!.member!.officialVerify!['type'] == 0)
Positioned(
right: 0,
bottom: 0,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7),
color: Theme.of(context).colorScheme.background,
),
child: Icon(
Icons.offline_bolt,
color: Theme.of(context).colorScheme.primary,
size: 16,
),
),
),
if (replyItem!.member!.vip!['vipStatus'] > 0 &&
replyItem!.member!.vip!['vipType'] == 2)
Positioned(
@@ -118,7 +101,8 @@ class ReplyItem extends StatelessWidget {
bottom: 0,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7),
//borderRadius: BorderRadius.circular(7),
shape: BoxShape.circle,
color: Theme.of(context).colorScheme.background,
),
child: Image.asset(
@@ -128,6 +112,42 @@ class ReplyItem extends StatelessWidget {
),
),
),
if (replyItem!.member!.officialVerify != null &&
replyItem!.member!.officialVerify!['type'] == 0)
Positioned(
right: -1,
bottom: -1,
child: Container(
decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8),
shape: BoxShape.circle,
color: Theme.of(context).colorScheme.background,
),
child: const Icon(
Icons.offline_bolt,
color: Colors.yellow,
size: 16,
),
),
),
if (replyItem!.member!.officialVerify != null &&
replyItem!.member!.officialVerify!['type'] == 1)
Positioned(
right: -1,
bottom: -1,
child: Container(
decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8),
shape: BoxShape.circle,
color: Theme.of(context).colorScheme.background,
),
child: const Icon(
Icons.offline_bolt,
color: Colors.lightBlueAccent,
size: 16,
),
),
),
],
);
}