mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: staff: use fixed width
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -318,10 +318,10 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
: SelfSizedHorizontalList(
|
: SelfSizedHorizontalList(
|
||||||
gapSize: 10,
|
gapSize: 10,
|
||||||
itemCount: videoItem['staff'].length,
|
itemCount: videoItem['staff'].length,
|
||||||
childBuilder: (index) => Column(
|
childBuilder: (index) => Container(
|
||||||
mainAxisSize: MainAxisSize.min,
|
width: 70,
|
||||||
children: [
|
alignment: Alignment.center,
|
||||||
GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () => Get.toNamed(
|
onTap: () => Get.toNamed(
|
||||||
'/member?mid=${videoItem['staff'][index].mid}',
|
'/member?mid=${videoItem['staff'][index].mid}',
|
||||||
arguments: {
|
arguments: {
|
||||||
@@ -329,7 +329,10 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
heroTag: Utils.makeHeroTag(
|
heroTag: Utils.makeHeroTag(
|
||||||
videoItem['staff'][index].mid),
|
videoItem['staff'][index].mid),
|
||||||
}),
|
}),
|
||||||
child: NetworkImgLayer(
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
NetworkImgLayer(
|
||||||
type: 'avatar',
|
type: 'avatar',
|
||||||
src: videoItem['staff'][index].face,
|
src: videoItem['staff'][index].face,
|
||||||
width: 40,
|
width: 40,
|
||||||
@@ -337,15 +340,15 @@ 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(height: 2),
|
||||||
Text(
|
Text(
|
||||||
videoItem['staff'][index].name.length > 5
|
videoItem['staff'][index].name,
|
||||||
? '${videoItem['staff'][index].name.toString().substring(0, 5)}...'
|
maxLines: 1,
|
||||||
: videoItem['staff'][index].name,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: videoItem['staff'][index]
|
||||||
videoItem['staff'][index].vip.status >
|
.vip
|
||||||
|
.status >
|
||||||
0 &&
|
0 &&
|
||||||
videoItem['staff'][index]
|
videoItem['staff'][index]
|
||||||
.vip
|
.vip
|
||||||
@@ -359,14 +362,17 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
videoItem['staff'][index].title,
|
videoItem['staff'][index].title,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
Theme.of(context).colorScheme.outline,
|
.colorScheme
|
||||||
|
.outline,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
if (isHorizontal) ...[
|
if (isHorizontal) ...[
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
Expanded(child: actionGrid(context, videoIntroController)),
|
Expanded(child: actionGrid(context, videoIntroController)),
|
||||||
|
|||||||
Reference in New Issue
Block a user