Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yveskalume/compose-qrpainter
- Owner: yveskalume
- Created: 2023-08-30T22:29:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-22T21:35:50.000Z (8 months ago)
- Last Synced: 2024-04-22T22:49:02.008Z (8 months ago)
- Language: Kotlin
- Homepage:
- Size: 176 KB
- Stars: 49
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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
)
```