mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: staff widget
Closes #61 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -350,18 +350,14 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
: SelfSizedHorizontalList(
|
: SelfSizedHorizontalList(
|
||||||
gapSize: 10,
|
gapSize: 25,
|
||||||
itemCount: videoItem['staff'].length,
|
itemCount: videoItem['staff'].length,
|
||||||
childBuilder: (index) => Container(
|
childBuilder: (index) => GestureDetector(
|
||||||
width: 80,
|
|
||||||
alignment: Alignment.center,
|
|
||||||
child: GestureDetector(
|
|
||||||
onTap: () {
|
onTap: () {
|
||||||
int? ownerMid = !widget.loadingStatus
|
int? ownerMid = !widget.loadingStatus
|
||||||
? widget.videoDetail?.owner?.mid
|
? widget.videoDetail?.owner?.mid
|
||||||
: videoItem['owner']?.mid;
|
: videoItem['owner']?.mid;
|
||||||
if (videoItem['staff'][index].mid ==
|
if (videoItem['staff'][index].mid == ownerMid &&
|
||||||
ownerMid &&
|
|
||||||
context.orientation ==
|
context.orientation ==
|
||||||
Orientation.landscape &&
|
Orientation.landscape &&
|
||||||
_horizontalMemberPage) {
|
_horizontalMemberPage) {
|
||||||
@@ -378,8 +374,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Column(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
children: [
|
||||||
NetworkImgLayer(
|
NetworkImgLayer(
|
||||||
type: 'avatar',
|
type: 'avatar',
|
||||||
@@ -389,7 +384,12 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
fadeInDuration: Duration.zero,
|
fadeInDuration: Duration.zero,
|
||||||
fadeOutDuration: Duration.zero,
|
fadeOutDuration: Duration.zero,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 2),
|
const SizedBox(width: 5),
|
||||||
|
Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
Text(
|
Text(
|
||||||
videoItem['staff'][index].name,
|
videoItem['staff'][index].name,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
@@ -418,6 +418,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user