mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: intro: author info widget
Closes #103 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -347,57 +347,53 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
child: videoItem['staff'] == null
|
child: videoItem['staff'] == null
|
||||||
? GestureDetector(
|
? GestureDetector(
|
||||||
onTap: onPushMember,
|
onTap: onPushMember,
|
||||||
child: Container(
|
child: Row(
|
||||||
padding: const EdgeInsets.symmetric(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
vertical: 1, horizontal: 0),
|
mainAxisSize: MainAxisSize.min,
|
||||||
child: Row(
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
NetworkImgLayer(
|
||||||
mainAxisSize: MainAxisSize.min,
|
type: 'avatar',
|
||||||
children: [
|
src: widget.loadingStatus
|
||||||
NetworkImgLayer(
|
? videoItem['owner']?.face ?? ""
|
||||||
type: 'avatar',
|
: videoDetail.owner!.face,
|
||||||
src: widget.loadingStatus
|
width: 35,
|
||||||
? videoItem['owner']?.face ?? ""
|
height: 35,
|
||||||
: videoDetail.owner!.face,
|
fadeInDuration: Duration.zero,
|
||||||
width: 30,
|
fadeOutDuration: Duration.zero,
|
||||||
height: 30,
|
),
|
||||||
fadeInDuration: Duration.zero,
|
const SizedBox(width: 10),
|
||||||
fadeOutDuration: Duration.zero,
|
Expanded(
|
||||||
),
|
child: Column(
|
||||||
const SizedBox(width: 10),
|
crossAxisAlignment:
|
||||||
Expanded(
|
CrossAxisAlignment.start,
|
||||||
child: Column(
|
children: [
|
||||||
crossAxisAlignment:
|
Text(
|
||||||
CrossAxisAlignment.start,
|
widget.loadingStatus
|
||||||
children: [
|
? videoItem['owner']?.name ?? ""
|
||||||
Text(
|
: videoDetail.owner!.name,
|
||||||
widget.loadingStatus
|
maxLines: 1,
|
||||||
? videoItem['owner']?.name ?? ""
|
overflow: TextOverflow.ellipsis,
|
||||||
: videoDetail.owner!.name,
|
style: TextStyle(
|
||||||
maxLines: 1,
|
fontSize: 13,
|
||||||
overflow: TextOverflow.ellipsis,
|
// color: t.colorScheme.primary,
|
||||||
|
),
|
||||||
|
// semanticsLabel: "UP主:${owner.name}",
|
||||||
|
),
|
||||||
|
const SizedBox(height: 0),
|
||||||
|
Obx(
|
||||||
|
() => Text(
|
||||||
|
'${Utils.numFormat(videoIntroController.userStat.value['follower'])}粉丝',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
// color: t.colorScheme.primary,
|
color: t.colorScheme.outline,
|
||||||
),
|
|
||||||
// semanticsLabel: "UP主:${owner.name}",
|
|
||||||
),
|
|
||||||
const SizedBox(height: 0),
|
|
||||||
Obx(
|
|
||||||
() => Text(
|
|
||||||
'${Utils.numFormat(videoIntroController.userStat.value['follower'])}粉丝',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 12,
|
|
||||||
color: t.colorScheme.outline,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
followButton(context, t),
|
),
|
||||||
],
|
followButton(context, t),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: SelfSizedHorizontalList(
|
: SelfSizedHorizontalList(
|
||||||
@@ -430,8 +426,8 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
NetworkImgLayer(
|
NetworkImgLayer(
|
||||||
type: 'avatar',
|
type: 'avatar',
|
||||||
src: videoItem['staff'][index].face,
|
src: videoItem['staff'][index].face,
|
||||||
width: 40,
|
width: 35,
|
||||||
height: 40,
|
height: 35,
|
||||||
fadeInDuration: Duration.zero,
|
fadeInDuration: Duration.zero,
|
||||||
fadeOutDuration: Duration.zero,
|
fadeOutDuration: Duration.zero,
|
||||||
),
|
),
|
||||||
@@ -446,6 +442,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
fontSize: 13,
|
||||||
color: videoItem['staff'][index]
|
color: videoItem['staff'][index]
|
||||||
.vip
|
.vip
|
||||||
.status >
|
.status >
|
||||||
|
|||||||
Reference in New Issue
Block a user