Match tape background to the Cupertino host theme
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user