Skip to content

yveskalume/compose-qrpainter

Repository files navigation

Jetpack Compose QRPainter

The Jetpack Compose QRPainter is a library that allows you to generate QR codes in Jetpack Compose.

Installation

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")
}

Usage

Image(
    painter = rememberQrBitmapPainter(
        content = "https://google.com",
        size = 300.dp,
        padding = 1.dp
    ),
    contentDescription = null
)

About

Generate QR codes in Jetpack Compose

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages