Qr screen
This commit is contained in:
@@ -29,6 +29,7 @@ fun DefaultScreen(
|
|||||||
qrCodeValue?.let {
|
qrCodeValue?.let {
|
||||||
Text(text = "Scanned Value: $it", modifier = Modifier.padding(16.dp))
|
Text(text = "Scanned Value: $it", modifier = Modifier.padding(16.dp))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import com.google.mlkit.vision.common.InputImage
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun QRCodeScannerScreen(
|
fun QRCodeScannerScreen(
|
||||||
|
|
||||||
onQRCodeScanned: (String) -> Unit,
|
onQRCodeScanned: (String) -> Unit,
|
||||||
lifecycleOwner: LifecycleOwner = androidx.lifecycle.compose.LocalLifecycleOwner.current
|
lifecycleOwner: LifecycleOwner = androidx.lifecycle.compose.LocalLifecycleOwner.current
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user