Browse Source

fix(neon): Fix drawer theming

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/775/head
jld3103 1 year ago
parent
commit
565de8511f
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 5
      packages/neon/neon/lib/src/pages/home.dart
  2. 2
      packages/neon/neon/lib/src/widgets/drawer.dart

5
packages/neon/neon/lib/src/pages/home.dart

@ -176,7 +176,10 @@ class _HomePageState extends State<HomePage> {
if (drawerAlwaysVisible) {
return Row(
children: [
drawer,
ColoredBox(
color: Theme.of(context).colorScheme.background,
child: drawer,
),
Expanded(
child: body,
),

2
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(

Loading…
Cancel
Save