File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
feature/settings/src/commonMain/kotlin/com/tunjid/heron/settings/ui Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import androidx.compose.animation.fadeOut
2424import androidx.compose.animation.shrinkOut
2525import androidx.compose.animation.slideInVertically
2626import androidx.compose.animation.slideOutVertically
27- import androidx.compose.foundation.clickable
2827import androidx.compose.foundation.layout.Arrangement
2928import androidx.compose.foundation.layout.Column
3029import androidx.compose.foundation.layout.ColumnScope
@@ -120,7 +119,11 @@ fun ExpandableSettingsItemRow(
120119 .then(
121120 modifier
122121 .fillMaxWidth()
123- .clickable { isExpanded = ! isExpanded },
122+ .toggleable(
123+ value = isExpanded,
124+ onValueChange = { isExpanded = it },
125+ role = Role .Button ,
126+ ),
124127 ),
125128 ) {
126129 SettingsItemRow (
You can’t perform that action at this time.
0 commit comments