I want the foster blur background like IOS i tried...
# compose
p
I want the foster blur background like IOS i tried different approaches too get like that in the android but I am not able to get that it only diming the background to grey like in the image, help me out of this
p
p
Is there any native thing??
s
You can use the native Modifier.blur, but it blurs the content itself. That means before showing your menu, let’s say it’s a dialog window, you’d need to apply the blur modifier to the underlying content. Visually, this creates the appearance of a blurred background, while the new dialog window appears above.
But I strongly recommend using Haze. It handles this task quite well and includes various workarounds for corner cases with Blur. It’s similar to how you’d prefer using an image-loading library rather than writing one yourself.
☝🏻 2
❤️ 1
☝🏿 1
☝️ 1
p
Thanks!!!!