Skip to content

Instantly share code, notes, and snippets.

@pmutisya
Created September 17, 2019 16:05
final Brightness brightnessValue = MediaQuery.of(context).platformBrightness;
bool isDark = brightnessValue == Brightness.dark;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment