Is is possible to make background blur effect in c...
# compose
a
Is is possible to make background blur effect in compose?
s
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1687951998535579 For those newer versions though there’s the
.blur()
modifier
a
Thanks, I tried the
.blur()
modifier, but it just blur the content itself, not the background.
s
Put the blur modifier in the background content, and then put non-blurred content on top of it then. If I understand what you mean correctly
a
It works in some situation, but if I want to create a background blur effect similar to an iOS pop-up window, this method doesn't work.🤔
s
Search in this channel previous discussions about blur. This topic has been discussed plenty of times already, maybe you learn something from there 😊
a
ok, thanks.
That solution wasn’t possible in compose until (I think) very recently. We just added the ability to redirect a draw, so it should be possible now (ie latest alpha, or next alpha maybe?)
l
do we have an update on this draw target change?
z
What kind of update are you looking for?
d
If you arrived here after searching for 'background blur', see @cb's excellent Haze implementation - and it's even Multiplatform with WASM support!
475 Views