Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Checkbox state does not update Text UI component correctly in TaskItem Composable" #969

Open
IacovColisnicenco opened this issue Aug 26, 2023 · 1 comment

Comments

@IacovColisnicenco
Copy link

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
        }
@vishtech36
Copy link

PR Raised #972

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants