systemBarsOf static method
Android's edge-to-edge system bars over theme's ground: transparent,
no contrast scrim, icons dark on a light ground and light on a dark
one.
Implementation
static SystemUiOverlayStyle systemBarsOf(ExpressiveThemeData theme) {
final dark = theme.brightness == Brightness.dark;
final transparent = theme.colors.surface.withValues(alpha: 0);
return SystemUiOverlayStyle(
statusBarColor: transparent,
statusBarBrightness: theme.brightness,
statusBarIconBrightness: dark ? Brightness.light : Brightness.dark,
systemNavigationBarColor: transparent,
systemNavigationBarDividerColor: transparent,
systemNavigationBarIconBrightness: dark
? Brightness.light
: Brightness.dark,
systemNavigationBarContrastEnforced: false,
systemStatusBarContrastEnforced: false,
);
}