mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
committed by
GitHub
parent
bbc498f882
commit
ed60c274fc
@@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:PiliPlus/common/widgets/avatar.dart';
|
||||
import 'package:PiliPlus/common/widgets/self_sized_horizontal_list.dart';
|
||||
import 'package:PiliPlus/pages/search/widgets/search_text.dart';
|
||||
import 'package:PiliPlus/utils/app_scheme.dart';
|
||||
@@ -311,57 +312,25 @@ class _VideoInfoState extends State<VideoInfo> {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Obx(
|
||||
() => Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
NetworkImgLayer(
|
||||
type: 'avatar',
|
||||
src: videoIntroController
|
||||
() => Avatar(
|
||||
avatar: videoIntroController
|
||||
.userStat
|
||||
.value['card']?['face'] ??
|
||||
'',
|
||||
size: 35,
|
||||
isVip: (videoIntroController
|
||||
.userStat
|
||||
.value['card']
|
||||
?['face'] ??
|
||||
'',
|
||||
width: 35,
|
||||
height: 35,
|
||||
fadeInDuration: Duration.zero,
|
||||
fadeOutDuration:
|
||||
Duration.zero,
|
||||
),
|
||||
if ((videoIntroController
|
||||
.userStat
|
||||
.value['card']
|
||||
?[
|
||||
'official_verify']
|
||||
?['type'] ??
|
||||
-1) !=
|
||||
-1)
|
||||
Positioned(
|
||||
right: -2,
|
||||
bottom: -2,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.surface,
|
||||
),
|
||||
child: Icon(
|
||||
Icons.offline_bolt,
|
||||
color: videoIntroController
|
||||
.userStat
|
||||
.value['card']
|
||||
?[
|
||||
'official_verify']
|
||||
?['type'] ==
|
||||
0
|
||||
? Colors.yellow
|
||||
: Colors
|
||||
.lightBlueAccent,
|
||||
size: 14,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
?['vip']?['status'] ??
|
||||
-1) >
|
||||
0,
|
||||
officialType: videoIntroController
|
||||
.userStat.value['card']
|
||||
?['official_verify']?['type'],
|
||||
garbPendantImage:
|
||||
videoIntroController.userStat
|
||||
.value['card']
|
||||
?['pendant']?['image'],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
|
||||
Reference in New Issue
Block a user