Update docs
This commit is contained in:
1 parent
054f8a9cb5
commit
5e4b0fb9b6
1 file changed
+2
-2
@@ -65,7 +65,7 @@ Box(
|
||||
)
|
||||
```
|
||||
|
||||
Using the block variant to improve performance when the style changes frequently:
|
||||
Use the block modifier variant to improve performance when the style changes frequently:
|
||||
|
||||
```kotlin
|
||||
var progress by animateFloatAsState(if (isPressed) 1f else 0f)
|
||||
@@ -81,7 +81,7 @@ Box(
|
||||
material = GlassMaterial(
|
||||
blurRadius = 2f.dp * progress,
|
||||
brush = SolidColor(Color.White),
|
||||
alpha = 0.3f
|
||||
alpha = 0.3f * progress
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user