Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed Feb 12, 2024
1 parent beb6b81 commit fcc757d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,20 @@ dependencies {

# Usage

## Generate
## Basic

You can create code right in composition using `rememberQrCodePainter`.
Or do it outside of Compose scope by instantiating a `QrCodePainter` class.

```kotlin
Image(
painter = rememberQrCodePainter("https://example.com")
contentDescription = "QR code"
)
```

## Design

There are some overloads of `rememberQrCodePainter` including DSL constructor:

```kotlin
Expand Down

0 comments on commit fcc757d

Please sign in to comment.