Flux de luminosité de la plate-forme

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