Browse Source

Merge pull request #775 from nextcloud/fix/drawer-theming

fix(neon): Fix drawer theming
pull/777/head
Kate 1 year ago committed by GitHub
parent
commit
19b4eca72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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