Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed Nov 18, 2023
2 parents dabe975 + f728572 commit 319af08
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ val qrcodePainter = rememberQrCodePainter("https://example.com") {
}
```

Or just parametrized constructor:

```kotlin
val qrcodePainter = rememberQrCodePainter(
data = "https://example.com",
shapes = QrShapes(
darkPixel = QrPixelShape.roundCorners()
)
)
```

# Customization

You can create your own shapes for each QR code part, for example:
Expand All @@ -75,3 +86,6 @@ class MyCircleBallShape : QrBallShape {
}
}
```
> **Note**
>A path here uses [`PathFillType.EvenOdd`](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType#EvenOdd()) that cannot be changed.

0 comments on commit 319af08

Please sign in to comment.