allowWallpaperTintingOverrides property

bool allowWallpaperTintingOverrides
final

Whether this SliverToolBar is allowed to perform wallpaper tinting overrides.

This property is supposed to be set to true when this SliverToolBar is currently visible on the screen (that is, not e.g. hidden by an IndexedStack).

By default, macos_ui applies wallpaper tinting to the application's window to match macOS' native appearance:

However, this effect is realized by inserting NSVisualEffectViews behind Flutter's canvas and turning the background of areas that are meant to be affected by wallpaper tinting transparent. Since Flutter's ImageFilter.blur does not support transparency, wallpaper tinting is disabled automatically when this widget's allowWallpaperTintingOverrides is true.

This is meant to be a temporary solution until #16296 is resolved in the Flutter project.

Implementation

final bool allowWallpaperTintingOverrides;