Flutter de brillo de la plataforma

var checkPlatformBrig = SchedulerBinding.instance!.window.platformBrightnes;
if(checkPlatformBrig == Brightness.dark){
// dark
}
Dead Dormouse