@@ -65,14 +65,14 @@ import org.mifos.mobile.core.ui.component.MifosPoweredCard
6565import org.mifos.mobile.core.ui.utils.EventsEffect
6666
6767/* *
68- * The main composable for the QR Code Reader screen. It handles state, events,
69- * and composes the UI content and dialogs.
68+ * The main composable for the **QR Code Reader screen**.
69+ * It collects state from the [QrCodeReaderViewModel], handles navigation and events,
70+ * and composes the main UI content and dialogs.
7071 *
7172 * @param navigateBack Callback to navigate to the previous screen.
72- * @param openBeneficiaryApplication Callback to open the beneficiary application with parsed data.
73- * @param navigateToQrImportScreen Callback to navigate to the screen for importing QR from an image.
74- * @param modifier The [Modifier] to be applied to this composable.
75- * @param viewModel The [QrCodeReaderViewModel] for this screen.
73+ * @param openBeneficiaryApplication Callback to open the beneficiary application with the parsed [Beneficiary] data and its [BeneficiaryState].
74+ * @param navigateToQrImportScreen Callback to navigate to the screen for importing QR from an image file.
75+ * @param viewModel The [QrCodeReaderViewModel] for managing state and business logic.
7676 */
7777@Composable
7878internal fun QrCodeReaderScreen (
@@ -141,8 +141,6 @@ private fun QrCodeReaderDialog(
141141
142142/* *
143143 * The main content of the QR Code Reader screen, including the camera preview and UI controls.
144- *
145- * @param modifier The [Modifier] to be applied to this composable.
146144 * @param onAction Callback for user actions on the screen.
147145 */
148146@Composable
@@ -259,10 +257,7 @@ private fun QrCodeReaderContent(
259257 }
260258}
261259
262- /* *
263- * A custom [Modifier] that draws four corners around a composable,
264- * creating a visual guide for the QR scanner.
265- */
260+
266261private fun Modifier.drawQrCorners (): Modifier = drawWithContent {
267262 drawContent()
268263
0 commit comments