systemStatusBarContrastEnforced property Null safety
final
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.
See also:
- SystemUiOverlayStyle.statusBarColor, which is overridden when transparent to enforce this contrast policy.
Implementation
final bool? systemStatusBarContrastEnforced;