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) { if (drawerAlwaysVisible) {
return Row( return Row(
children: [ children: [
drawer, ColoredBox(
color: Theme.of(context).colorScheme.background,
child: drawer,
),
Expanded( Expanded(
child: body, child: body,
), ),

2
packages/neon/neon/lib/src/widgets/drawer.dart

@ -150,7 +150,7 @@ class NeonDrawerHeader extends StatelessWidget {
Text( Text(
theme.name, theme.name,
style: DefaultTextStyle.of(context).style.copyWith( style: DefaultTextStyle.of(context).style.copyWith(
color: Theme.of(context).appBarTheme.foregroundColor, color: Theme.of(context).colorScheme.onPrimary,
), ),
), ),
Flexible( Flexible(

Loading…
Cancel
Save