Skip to content

Releases: chrisbanes/haze

0.4.1

12 Dec 16:53
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.0...0.4.1

0.4.0

11 Dec 15:56
Compare
Choose a tag to compare

New API!

I have broken the existing API, but hopefully you can see why. You no longer need to manually calculate bounds. HazeState + Modifier.haze() + Modifier.hazeChild() is all you need.

val hazeState = remember { HazeState() } 

Box {
  LazyColumn(
    modifier = Modifier
      .fillMaxSize()
      .haze(
        // Pass it the HazeState we stored above
        state = hazeState,
        // Need to provide background color of the content
        backgroundColor = MaterialTheme.colorScheme.surface,
      ),
  ) {
    // todo
  }

  Text(
    text = "Content will be blurred behind this",
    modifier = Modifier
      // We use hazeChild on anything where we want the background
      // blurred. We can even provide a shape.
      .hazeChild(
        state = hazeState,
        shape = RoundedCornerShape(16.dp),
      ),
  )
}

What's Changed

Full Changelog: 0.3.1...0.4.0

0.3.1

10 Nov 12:56
Compare
Choose a tag to compare

Small hotfix. We now build Android and JVM targets outputting Java 11 bytecode.

What's Changed

Full Changelog: 0.3.0...0.3.1

0.3.0

08 Nov 18:53
Compare
Choose a tag to compare

🆕 Round Rect support

We now have support for rounded rectangles, thanks to @MohamedRejeb.

What's Changed

New Contributors

Full Changelog: v0.2.0...0.3.0

v0.2.0

01 Nov 14:28
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.2.0

v0.1.0

30 Oct 16:35
Compare
Choose a tag to compare