From 565de8511f8f64c636fc50c3a0cdaf51d1744c35 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 16 Sep 2023 17:01:53 +0200 Subject: [PATCH] fix(neon): Fix drawer theming Signed-off-by: jld3103 --- packages/neon/neon/lib/src/pages/home.dart | 5 ++++- packages/neon/neon/lib/src/widgets/drawer.dart | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/neon/neon/lib/src/pages/home.dart b/packages/neon/neon/lib/src/pages/home.dart index 29701d56..b41cc966 100644 --- a/packages/neon/neon/lib/src/pages/home.dart +++ b/packages/neon/neon/lib/src/pages/home.dart @@ -176,7 +176,10 @@ class _HomePageState extends State { if (drawerAlwaysVisible) { return Row( children: [ - drawer, + ColoredBox( + color: Theme.of(context).colorScheme.background, + child: drawer, + ), Expanded( child: body, ), diff --git a/packages/neon/neon/lib/src/widgets/drawer.dart b/packages/neon/neon/lib/src/widgets/drawer.dart index 367f5e66..a7735831 100644 --- a/packages/neon/neon/lib/src/widgets/drawer.dart +++ b/packages/neon/neon/lib/src/widgets/drawer.dart @@ -150,7 +150,7 @@ class NeonDrawerHeader extends StatelessWidget { Text( theme.name, style: DefaultTextStyle.of(context).style.copyWith( - color: Theme.of(context).appBarTheme.foregroundColor, + color: Theme.of(context).colorScheme.onPrimary, ), ), Flexible(