Window's material property using MacosApp #521
-
Is it possible to make the window's subview material translucent ( Currently, the window appears translucent briefly at startup, before MacosApp/MacosWindow is built. After that background is changed and translucent effect not visible anymore. Except sidebar, because it's wrapped with TransparentMacOSSidebar widget(it has hardcoded Wrapping MacosScaffold or it's body with TransparentMacOSSidebar is not a solution because it's not stable and translucent effect is applied partially or not always. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Currently, The reason for this is that the alpha channel doesn’t get blurred by Flutter’s BackdropFilter and implementing custom backdrop filters is currently impossible until the aforementioned Flutter issue is resolved (it’s been six years since the issue was opened, so don’t hold your breath). This is the reason why we are currently disabling wallpaper tinting whenever a transparent widget is shown on-screen. It simply isn’t possible to show an |
Beta Was this translation helpful? Give feedback.
Currently,
NSVisualEffectViewMaterial.windowBackground
is hard-coded into macos_ui’sWallpaperTintedArea
widget, which is used by theMacosScaffold
widget, which indeed makes it impossible to apply different materials. However, adding configuration options that would allow the user to use different materials wouldn’t help much, as using a translucent background would break all widgets that rely on Flutter’s BackdropFilter class due to a Flutter issue that we cannot fix, see flutter/flutter#16296. Due to this issue, translucent widgets that apply a blur filter to their backgrounds would look somewhat like this:The reason for this is that the alpha channel doesn’t get blurred by Flutter’s…