didChangePlatformBrightness method

  1. @override
void didChangePlatformBrightness()
override

监听平台切换了主题模式

Implementation

@override
void didChangePlatformBrightness() {
  super.didChangePlatformBrightness();
  if (_themeMode == ThemeMode.system) {
    refreshAppui();
  }
}