The Jetpack Compose QRPainter is a library that allows you to generate QR codes in Jetpack Compose.
Setup the maven repository
repositories {
maven { url = uri("https://jitpack.io") }
}
To use the library, add the following dependency to your project's build.gradle.kts
file:
dependencies {
implementation("com.github.yveskalume.compose-qrpainter:0.0.1")
}
Image(
painter = rememberQrBitmapPainter(
content = "https://google.com",
size = 300.dp,
padding = 1.dp
),
contentDescription = null
)