fix: null exception in themes

This commit is contained in:
Kingkor Roy Tirtho 2022-12-09 11:28:29 +06:00
parent 3282370f74
commit 9465d92fa0

View File

@ -127,7 +127,7 @@ final windowsTheme = fluent_ui.ThemeData.light().copyWith(
), ),
), ),
navigationPaneTheme: fluent_ui.NavigationPaneThemeData( 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( final windowsDarkTheme = fluent_ui.ThemeData.dark().copyWith(
@ -137,7 +137,7 @@ final windowsDarkTheme = fluent_ui.ThemeData.dark().copyWith(
), ),
), ),
navigationPaneTheme: fluent_ui.NavigationPaneThemeData( 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( final macosTheme = MacosThemeData.light().copyWith(