Skip to content

Commit

Permalink
theme: Use slightly more efficient MediaQuery.platformBrightnessOf
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Aug 3, 2024
1 parent c5ffb78 commit 89d825a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'text.dart';
ThemeData zulipThemeData(BuildContext context) {
final DesignVariables designVariables;
final List<ThemeExtension> themeExtensions;
Brightness brightness = MediaQuery.of(context).platformBrightness;
Brightness brightness = MediaQuery.platformBrightnessOf(context);
switch (brightness) {
case Brightness.light: {
designVariables = DesignVariables.light();
Expand Down

0 comments on commit 89d825a

Please sign in to comment.