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 'package:flutter/material.dart';
|
||||||
|
import '../../../ui/adaptive/host.dart';
|
||||||
import 'chat_mobile_panes.dart';
|
import 'chat_mobile_panes.dart';
|
||||||
import 'chat_mobile_peek_divider.dart';
|
import 'chat_mobile_peek_divider.dart';
|
||||||
import 'chat_pane_backdrop.dart';
|
import 'chat_pane_backdrop.dart';
|
||||||
@@ -30,7 +32,11 @@ Widget chatWorkspaceSurface({
|
|||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
children: [
|
children: [
|
||||||
if (mobile != null)
|
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)
|
if (backdrop.image != null && mobile != null)
|
||||||
AnimatedBuilder(
|
AnimatedBuilder(
|
||||||
animation: motion.animation,
|
animation: motion.animation,
|
||||||
|
|||||||
Reference in New Issue
Block a user