Cloudy icon indicating copy to clipboard operation
Cloudy copied to clipboard

Support blur content inside only

Open jiangnan44 opened this issue 2 years ago • 4 comments

I need to blur an Image as background of a ConstraintLayout , but Cloudy seems to blur everything overlay . Please consider add this feture

jiangnan44 avatar May 08 '23 04:05 jiangnan44

Love to see this happen too! @skydoves Please grant us the wish, you'll make a lot us very happy :)

nubpro avatar Jun 17 '23 04:06 nubpro

Box {
  Cloudy() {
      Box(
          modifier = Modifier
              .fillMaxSize()
              .background(Color(255, 255, 255).copy(alpha = 0.38f))
      )
  }
  Text(
      text = stringResource("Text here"),
      color = Color.Black,
      fontSize = 60.sp
  )
}

image

Im trying to blur the background only but it seems to be applying the blur around the text on top of it.

nubpro avatar Jun 17 '23 04:06 nubpro

Also, when scrolling, scroll content is usually shifted. This makes the library useless. image

pavelperc avatar Aug 31 '23 13:08 pavelperc

Hey @skydoves, Could you please provide a better way to handle this issue? I'm thinking of adding this to my project but it seem a bit unstable at this point, thanks a bunch in advance!

vrajendraBhavsar avatar Sep 01 '23 13:09 vrajendraBhavsar

Hey guys, the new version 0.2.0 has been released, and now you can resolve this issue by using the Modifier.cloudy modifier instead of the Cloudy composable function.

skydoves avatar Jul 17 '24 01:07 skydoves

Hey guys, the new version 0.2.0 has been released, and now you can resolve this issue by using the Modifier.cloudy modifier instead of the Cloudy composable function.

Havent tried it but thank you!

nubpro avatar Jul 22 '24 13:07 nubpro