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