Skip to content

Commit 9b08b45

Browse files
authored
Update dark-mode.dart
1 parent e56d476 commit 9b08b45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dark-mode.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
//set the color to -
1+
final Brightness brightnessValue =
2+
MediaQuery.of(context).platformBrightness;
3+
bool isDark = brightnessValue == Brightness.dark;
4+
25

6+
//set the color to -
37
color: Theme.of(context).textTheme.bodyText1!.color
48

59

0 commit comments

Comments
 (0)