Skip to content

QRCode

QRCode is based on zxing, and you can convert the specified content into a QR code through the createQRCodeBitmap method.

@Composable
fun QRCode() {
    Box(
        contentAlignment = Alignment.Center,
        modifier = Modifier.fillMaxSize()
    ) {
        val qrCode = QRCode.createQRCodeBitmap("Hello", 800, 800)
        Image(bitmap = qrCode.asImageBitmap(), contentDescription = null)
    }
}

QRCodeUtil

QRCode

Sample Code