Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/src/main/java/pro/themed/todos/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down