Skip to content

Commit

Permalink
fix: null exception in themes
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Dec 9, 2022
1 parent 3282370 commit 9465d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/themes/light_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 9465d92

Please sign in to comment.