Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yveskalume/compose-qrpainter

Generate QR codes in Jetpack Compose
https://github.com/yveskalume/compose-qrpainter

Last synced: 10 days ago
JSON representation

Generate QR codes in Jetpack Compose

Awesome Lists containing this project

README

        

# Jetpack Compose QRPainter

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

[![](https://jitpack.io/v/yveskalume/compose-qrpainter.svg)](https://jitpack.io/#yveskalume/compose-qrpainter)

## Installation

Setup the maven repository

```kotlin
repositories {
maven { url = uri("https://jitpack.io") }
}
```
To use the library, add the following dependency to your project's `build.gradle.kts` file:

```kotlin
dependencies {
implementation("com.github.yveskalume.compose-qrpainter:0.0.1")
}
```

## Usage

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