opt: staff widget

Closes #61

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-28 14:00:26 +08:00
parent ec8c010c96
commit 820c7aa324

View File

@@ -350,18 +350,14 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
),
)
: SelfSizedHorizontalList(
gapSize: 10,
gapSize: 25,
itemCount: videoItem['staff'].length,
childBuilder: (index) => Container(
width: 80,
alignment: Alignment.center,
child: GestureDetector(
childBuilder: (index) => GestureDetector(
onTap: () {
int? ownerMid = !widget.loadingStatus
? widget.videoDetail?.owner?.mid
: videoItem['owner']?.mid;
if (videoItem['staff'][index].mid ==
ownerMid &&
if (videoItem['staff'][index].mid == ownerMid &&
context.orientation ==
Orientation.landscape &&
_horizontalMemberPage) {
@@ -378,8 +374,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
);
}
},
child: Column(
mainAxisSize: MainAxisSize.min,
child: Row(
children: [
NetworkImgLayer(
type: 'avatar',
@@ -389,7 +384,12 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
fadeInDuration: Duration.zero,
fadeOutDuration: Duration.zero,
),
const SizedBox(height: 2),
const SizedBox(width: 5),
Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
Text(
videoItem['staff'][index].name,
maxLines: 1,
@@ -418,6 +418,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
),
],
),
],
),
),
),