pub struct SystemUiOverlayStyle {
pub system_navigation_bar_color: Option<Color>,
pub system_navigation_bar_divider_color: Option<Color>,
pub system_navigation_bar_icon_brightness: Option<Brightness>,
pub system_navigation_bar_contrast_enforced: Option<bool>,
pub status_bar_color: Option<Color>,
pub status_bar_brightness: Option<Brightness>,
pub status_bar_icon_brightness: Option<Brightness>,
pub system_status_bar_contrast_enforced: Option<bool>,
}Expand description
Specifies a system overlay style for a portion of the app.
Flutter counterpart: SystemUiOverlayStyle (services/system_chrome.dart).
It lives here because Platform names it.
Fields§
The color of the system bottom navigation bar.
Only honored in Android versions O and greater.
The color of the divider between the system’s bottom navigation bar and the app’s content.
Only honored in Android versions P and greater.
The brightness of the system navigation bar icons.
Only honored in Android versions O and greater.
When set to Brightness::Light, the system navigation bar icons are light.
When set to Brightness::Dark, the system navigation bar icons are dark.
Overrides the contrast enforcement when setting a transparent navigation bar.
When setting a transparent navigation bar in SDK 29+, or Android 10 and up, a translucent body scrim may be applied behind the button navigation bar to ensure contrast with buttons and the background of the application.
SDK 28-, or Android P and lower, will not apply this body scrim.
Setting this to false overrides the default body scrim.
status_bar_color: Option<Color>The color of top status bar.
Only honored in Android version M and greater.
status_bar_brightness: Option<Brightness>The brightness of top status bar.
Only honored in iOS.
status_bar_icon_brightness: Option<Brightness>The brightness of the top status bar icons.
Only honored in Android version M and greater.
system_status_bar_contrast_enforced: Option<bool>Overrides the contrast enforcement when setting a transparent status bar.
When setting a transparent status bar in SDK 29+, or Android 10 and up, a translucent body scrim may be applied to ensure contrast with icons and the background of the application.
SDK 28-, or Android P and lower, will not apply this body scrim.
Setting this to false overrides the default body scrim.
Implementations§
Source§impl SystemUiOverlayStyle
impl SystemUiOverlayStyle
Sourcepub const LIGHT: SystemUiOverlayStyle
pub const LIGHT: SystemUiOverlayStyle
System overlays should be drawn with a light color. Intended for applications with a dark background.
Sourcepub const DARK: SystemUiOverlayStyle
pub const DARK: SystemUiOverlayStyle
System overlays should be drawn with a dark color. Intended for applications with a light background.
Sourcepub const fn new() -> SystemUiOverlayStyle
pub const fn new() -> SystemUiOverlayStyle
Creates a new SystemUiOverlayStyle; Dart’s named arguments are the setters.
Dart SystemUiOverlayStyle(systemNavigationBarColor:).
Dart SystemUiOverlayStyle(systemNavigationBarDividerColor:).
Dart SystemUiOverlayStyle(systemNavigationBarIconBrightness:).
Dart SystemUiOverlayStyle(systemNavigationBarContrastEnforced:).
Sourcepub fn status_bar_color(self, color: Color) -> SystemUiOverlayStyle
pub fn status_bar_color(self, color: Color) -> SystemUiOverlayStyle
Dart SystemUiOverlayStyle(statusBarColor:).
Sourcepub fn status_bar_brightness(
self,
brightness: Brightness,
) -> SystemUiOverlayStyle
pub fn status_bar_brightness( self, brightness: Brightness, ) -> SystemUiOverlayStyle
Dart SystemUiOverlayStyle(statusBarBrightness:).
Sourcepub fn status_bar_icon_brightness(
self,
brightness: Brightness,
) -> SystemUiOverlayStyle
pub fn status_bar_icon_brightness( self, brightness: Brightness, ) -> SystemUiOverlayStyle
Dart SystemUiOverlayStyle(statusBarIconBrightness:).
Sourcepub fn system_status_bar_contrast_enforced(
self,
enforced: bool,
) -> SystemUiOverlayStyle
pub fn system_status_bar_contrast_enforced( self, enforced: bool, ) -> SystemUiOverlayStyle
Dart SystemUiOverlayStyle(systemStatusBarContrastEnforced:).
Sourcepub fn copy_with(&self) -> SystemUiOverlayStyle
pub fn copy_with(&self) -> SystemUiOverlayStyle
Creates a copy of this theme with the given fields replaced with new values.
Trait Implementations§
Source§impl Clone for SystemUiOverlayStyle
impl Clone for SystemUiOverlayStyle
Source§fn clone(&self) -> SystemUiOverlayStyle
fn clone(&self) -> SystemUiOverlayStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more