merge mine & media

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-28 14:27:18 +08:00
parent 6ca7efe8d1
commit 65b432ed2c
40 changed files with 903 additions and 1038 deletions

View File

@@ -592,9 +592,7 @@ class VideoIntroController extends CommonIntroController with ReloadMixin {
followStatus: followStatus,
callback: (attribute) {
followStatus['attribute'] = attribute;
Future.delayed(const Duration(milliseconds: 500), () {
queryFollowStatus();
});
Future.delayed(const Duration(milliseconds: 500), queryFollowStatus);
},
);
}

View File

@@ -428,9 +428,10 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
await videoDetailController.playerInit();
}
Future.delayed(const Duration(milliseconds: 600), () {
AutoOrientation.fullAutoMode();
});
Future.delayed(
const Duration(milliseconds: 600),
AutoOrientation.fullAutoMode,
);
plPlayerController?.addStatusLister(playerListener);
plPlayerController?.addPositionListener(positionListener);
}

View File

@@ -2163,14 +2163,9 @@ class HeaderControlState extends State<HeaderControl> {
children: [
TextButton(
style: ButtonStyle(
foregroundColor:
WidgetStateProperty.resolveWith((
states,
) {
return theme
.snackBarTheme
.actionTextColor;
}),
foregroundColor: WidgetStatePropertyAll(
theme.snackBarTheme.actionTextColor,
),
),
onPressed: () {
plPlayerController.setBackgroundPlay(
@@ -2183,14 +2178,9 @@ class HeaderControlState extends State<HeaderControl> {
const SizedBox(width: 10),
TextButton(
style: ButtonStyle(
foregroundColor:
WidgetStateProperty.resolveWith((
states,
) {
return theme
.snackBarTheme
.actionTextColor;
}),
foregroundColor: WidgetStatePropertyAll(
theme.snackBarTheme.actionTextColor,
),
),
onPressed: () {},
child: const Text('不启用'),
@@ -2203,7 +2193,7 @@ class HeaderControlState extends State<HeaderControl> {
showCloseIcon: true,
),
);
await Future.delayed(const Duration(seconds: 3), () {});
await Future.delayed(const Duration(seconds: 3));
}
if (!context.mounted) return;
PageUtils.enterPip(