From 9465d92fa032b8598a0752767dcec9af2541d222 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Fri, 9 Dec 2022 11:28:29 +0600 Subject: [PATCH] fix: null exception in themes --- lib/themes/light_theme.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/themes/light_theme.dart b/lib/themes/light_theme.dart index 8be9bc74e..545674b28 100644 --- a/lib/themes/light_theme.dart +++ b/lib/themes/light_theme.dart @@ -127,7 +127,7 @@ final windowsTheme = fluent_ui.ThemeData.light().copyWith( ), ), navigationPaneTheme: fluent_ui.NavigationPaneThemeData( - backgroundColor: fluent_ui.Colors.grey[100].withOpacity(0.5), + backgroundColor: Colors.grey[100]?.withOpacity(0.5), ), ); final windowsDarkTheme = fluent_ui.ThemeData.dark().copyWith( @@ -137,7 +137,7 @@ final windowsDarkTheme = fluent_ui.ThemeData.dark().copyWith( ), ), navigationPaneTheme: fluent_ui.NavigationPaneThemeData( - backgroundColor: fluent_ui.Colors.grey[900].withOpacity(0.5), + backgroundColor: Colors.grey[900]?.withOpacity(0.5), ), ); final macosTheme = MacosThemeData.light().copyWith(