yveskalume / compose-qrpainter

Generate QR codes in Jetpack Compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Kotlin 100.0%