Skip to content

Conversation

@fornewid
Copy link
Collaborator

How to use:

    val (expanded, onExpandedChange) = rememberSaveable { mutableStateOf(false) }
    ReadMoreText(
        text = "...",
        expanded = expanded,
+       onExpandedChange = onExpandedChange,
        modifier = Modifier
            .fillMaxWidth()
-           .clickable { onExpandedChange(!expanded) }
    )

@fornewid fornewid requested a review from hyeonu1258 as a code owner January 13, 2023 18:41
@fornewid fornewid merged commit 5c14085 into main Jan 13, 2023
@fornewid fornewid deleted the onExpandedChange branch January 13, 2023 19:10
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

Successfully merging this pull request may close these issues.

2 participants