fix(flutter): 播放页改为透明叠层

This commit is contained in:
Zhou Weidong committed 2026-10-20 11:29:02 +08:00
1 parent d762511412
commit 0af68f2455
5 files changed
+60 -50

No files matched your search

+10 -13
View File
@@ -20,7 +20,6 @@ import '../../core/theme/app_colors.dart';
import '../../core/theme/app_theme.dart';
import '../../core/widgets/auth_gate.dart';
import '../../core/widgets/download_action.dart';
import '../../core/widgets/remote_image.dart';
import '../../l10n/app_localizations.dart';
import '../interaction/widgets/report_dialog.dart';
import 'player_binding.dart';
@@ -168,7 +167,11 @@ class _PlayerPageState extends State<PlayerPage> with WidgetsBindingObserver {
data: AppTheme.light(),
child: widget.embedded
? content
: Scaffold(backgroundColor: AppColors.ink, body: content),
: Scaffold(
key: const Key('player-scaffold'),
backgroundColor: Colors.transparent,
body: content,
),
),
);
}
@@ -215,17 +218,11 @@ class _PlayerPageState extends State<PlayerPage> with WidgetsBindingObserver {
return Stack(
fit: StackFit.expand,
children: [
ColoredBox(
key: const Key('player-background'),
color: AppColors.playerBackground,
child: widget.homeMode
? null
: RemoteImage(
drama.posterUrl,
fit: BoxFit.cover,
showFallbackIcon: true,
),
),
if (!ready)
const ColoredBox(
key: Key('player-fallback-background'),
color: Colors.black,
),
?video,
if (widget.homeMode && _chromeVisible && !logic.chromeHidden)
Positioned.fill(