You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the TasksScreen.kt file, the TaskItem Composable exhibits a bug where the text of a task remains strikethrough even after the task is unchecked as complete. This issue is due to the absence of a TextDecoration.None setting in the Text Composable, which is responsible for displaying the task title. The text should update dynamically based on the task.isCompleted boolean value.
What I was fix:
textDecoration = if (task.isCompleted) {
TextDecoration.LineThrough
} else {
//This give me a bug. Oh man
//null
//I add this line of code and bug was fix
TextDecoration.None
}
The text was updated successfully, but these errors were encountered:
In the TasksScreen.kt file, the TaskItem Composable exhibits a bug where the text of a task remains strikethrough even after the task is unchecked as complete. This issue is due to the absence of a TextDecoration.None setting in the Text Composable, which is responsible for displaying the task title. The text should update dynamically based on the task.isCompleted boolean value.
What I was fix:
The text was updated successfully, but these errors were encountered: