Match tape background to the Cupertino host theme

This commit is contained in:
2026-11-07 13:25:34 +00:00
parent fc3e198141
commit cc7049ccf4
@@ -1,4 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../../ui/adaptive/host.dart';
import 'chat_mobile_panes.dart';
import 'chat_mobile_peek_divider.dart';
import 'chat_pane_backdrop.dart';
@@ -30,7 +32,11 @@ Widget chatWorkspaceSurface({
clipBehavior: Clip.hardEdge,
children: [
if (mobile != null)
ColoredBox(color: Theme.of(context).colorScheme.surface),
ColoredBox(
color: usesCupertinoHost(context)
? CupertinoTheme.of(context).scaffoldBackgroundColor
: Theme.of(context).colorScheme.surface,
),
if (backdrop.image != null && mobile != null)
AnimatedBuilder(
animation: motion.animation,