QrCode
fun QrCode(matrix: BitMatrix, modifier: Modifier = Modifier, dark: Color = Color.Black, light: Color = Color.White, quietZone: Int = 4)
Draws a QR (or any) BitMatrix as a Composable, scaling to fill modifier's bounds while staying square and centred. Adjacent dark modules are merged into horizontal runs so the symbol stays crisp with no seams.
QrCode(Qr.encode("hello"), Modifier.size(240.dp))Content copied to clipboard
Parameters
quietZone
margin around the code, in modules (the spec asks for 4).