systemStatusBarContrastEnforced property Null safety

bool? systemStatusBarContrastEnforced
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:

Implementation

final bool? systemStatusBarContrastEnforced;