diff --git a/app/src/main/java/pro/themed/todos/MainActivity.kt b/app/src/main/java/pro/themed/todos/MainActivity.kt index 72e7a87..aaad86d 100644 --- a/app/src/main/java/pro/themed/todos/MainActivity.kt +++ b/app/src/main/java/pro/themed/todos/MainActivity.kt @@ -52,6 +52,14 @@ class MainActivity : ComponentActivity() { } } +/** + * Displays a to-do item with an interactive checkbox and label. + * + * When tapped, the checkbox toggles its state. A long press opens a dialog displaying the item's label, + * which can be dismissed by tapping outside the dialog. + * + * @param label the text label for the to-do item. Defaults to "Go to the doctor". + */ @OptIn(ExperimentalFoundationApi::class) @Preview(showBackground = true) @Composable