Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Dec 11, 2023
1 parent f3edfc3 commit a50f7f4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Box {
modifier = Modifier
// We use hazeChild on anything where we want the background
// blurred.
.hazeChild(key = "app_bar", state = hazeState)
.hazeChild(state = hazeState)
.fillMaxWidth(),
)
}
Expand All @@ -40,7 +40,7 @@ Haze has some support for blurring of `Shape`s. Each platform has varying suppor

To use a shape, you can just pass it in to `hazeChild`:

``` kotlin hl_lines="11"
``` kotlin hl_lines="10"
val hazeState = remember { HazeState() }

Box {
Expand All @@ -49,7 +49,6 @@ Box {
LargeTopAppBar(
modifier = Modifier
.hazeChild(
key = "app_bar",
state = hazeState,
shape = RoundedCornerShape(16.dp),
),
Expand All @@ -74,7 +73,7 @@ Scaffold(
// Need to make app bar transparent to see the content behind
colors = TopAppBarDefaults.largeTopAppBarColors(Color.Transparent),
modifier = Modifier
.hazeChild(key = "app_bar", state = hazeState)
.hazeChild(state = hazeState)
.fillMaxWidth(),
) {
/* todo */
Expand All @@ -84,7 +83,7 @@ Scaffold(
NavigationBar(
containerColor = Color.Transparent,
modifier = Modifier
.hazeChild(key = "app_bar", state = hazeState)
.hazeChild(state = hazeState)
.fillMaxWidth(),
) {
/* todo */
Expand Down

0 comments on commit a50f7f4

Please sign in to comment.