|
@@ -40,13 +40,15 @@ class _ExpandableMenuItemWidgetState extends State<ExpandableMenuItemWidget> {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
final enteColorScheme = Theme.of(context).colorScheme.enteTheme.colorScheme;
|
|
|
+ final backgroundColor =
|
|
|
+ MediaQuery.of(context).platformBrightness == Brightness.light
|
|
|
+ ? enteColorScheme.backgroundElevated2
|
|
|
+ : enteColorScheme.backgroundElevated;
|
|
|
return AnimatedContainer(
|
|
|
curve: Curves.ease,
|
|
|
duration: const Duration(milliseconds: 200),
|
|
|
decoration: BoxDecoration(
|
|
|
- color: expandableController.value
|
|
|
- ? enteColorScheme.backgroundElevated
|
|
|
- : null,
|
|
|
+ color: expandableController.value ? backgroundColor : null,
|
|
|
borderRadius: BorderRadius.circular(4),
|
|
|
),
|
|
|
child: ExpandableNotifier(
|