1.1 KiB
1.1 KiB
We provide off of the shelf implementations of HazeStyles which implement 'materials' of varying opacity.
!!! info It is inspired by the materials available on Apple platforms, but it makes no attempt to provide the exact effects provided in iOS or other operating systems.
Usage
Everything is provided through functions on the HazeMaterials class, with each function providing a different material.
Box {
// rest of sample from above
LargeTopAppBar(
modifier = Modifier
.hazeChild(
...
style = HazeMaterials.thin(),
),
)
}
Download
repositories {
mavenCentral()
}
dependencies {
implementation("dev.chrisbanes.haze:haze-materials:<version>")
}
