Trzepotanie jasności platformy

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