fix reply box. (#288)

This commit is contained in:
Jojo Feng
2023-11-01 23:00:00 -07:00
committed by GitHub
parent 279007191b
commit dbd48eae99

View File

@ -76,7 +76,8 @@ class _ReplyBoxState extends State<ReplyBox> with ItemActionMixin {
duration: Durations.ms200,
decoration: BoxDecoration(
boxShadow: <BoxShadow>[
if (!context.read<SplitViewCubit>().state.enabled)
if (!context.read<SplitViewCubit>().state.enabled &&
!Theme.of(context).useMaterial3)
BoxShadow(
color: expanded ? Palette.transparent : Palette.black26,
blurRadius: Dimens.pt40,
@ -84,6 +85,9 @@ class _ReplyBoxState extends State<ReplyBox> with ItemActionMixin {
],
),
child: Material(
color: Theme.of(context).useMaterial3
? Palette.transparent
: null,
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[