Update README.md

This commit is contained in:
Kyant0 committed 2025-07-18 10:40:29 +08:00
1 parent 39fe48262f
commit 99e159fc8d
1 file changed
+35
+35
View File
@@ -10,6 +10,22 @@ Check the [demo app](./app/release/app-release.apk), Android 13 and above is req
The library is in alpha stage, every API may be changed, use it on your own risk.
### Add to project
[![JitPack Release](https://jitpack.io/v/Kyant0/AndroidLiquidGlass.svg)](https://jitpack.io/#Kyant0/AndroidLiquidGlass)
```kotlin
// settings.gradle.kts in root project
dependencyResolutionManagement {
repositories {
maven("https://jitpack.io")
}
}
// build.gradle.kts in module
implementation("com.github.Kyant0:AndroidLiquidGlass:<version>")
```
### Examples
```kotlin
@@ -40,6 +56,25 @@ Box(
)
```
### Limitations
The following case is not supported:
```kotlin
LiquidGlassProvider(providerState) {
LiquidGlass(providerState) {}
}
```
Instead, you should rewrite it like this:
```kotlin
Box {
LiquidGlassProvider(providerState) {}
LiquidGlass(providerState) {}
}
```
## Glass parameters
| Parameter | Availability | Verification |