overlayStyle property

SystemUiOverlayStyle get overlayStyle

Return a system ui overlay style according to the brightness of the theme data. 根据主题返回状态栏的明暗样式

Implementation

SystemUiOverlayStyle get overlayStyle {
  if (theme.appBarTheme.systemOverlayStyle != null) {
    return theme.appBarTheme.systemOverlayStyle!;
  }
  return SystemUiOverlayStyle(
    systemNavigationBarColor: Colors.transparent,
    systemNavigationBarIconBrightness: Brightness.light,
    statusBarIconBrightness: theme.effectiveBrightness,
    statusBarBrightness: theme.effectiveBrightness.reverse,
  );
}