@@ -12,6 +12,7 @@ import androidx.compose.material.icons.Icons
1212import androidx.compose.material.icons.filled.Key
1313import androidx.compose.material.icons.outlined.Android
1414import androidx.compose.material.icons.outlined.Draw
15+ import androidx.compose.material.icons.outlined.Error
1516import androidx.compose.material.icons.outlined.InstallMobile
1617import androidx.compose.material.icons.outlined.Key
1718import androidx.compose.material3.*
@@ -256,17 +257,23 @@ fun SignatureStatus(
256257 Column {
257258 Text (stringResource(Res .string.signature_validity), style = MaterialTheme .typography.titleSmall)
258259
259- MultiChoiceSegmentedButtonRow (
260- modifier = Modifier .align(alignment = Alignment . CenterHorizontally )
260+ FlowRow (
261+ horizontalArrangement = Arrangement .spacedBy( 8 .dp),
261262 ) {
262263 texts.forEachIndexed { index, label ->
263- SegmentedButton (
264- shape = SegmentedButtonDefaults .itemShape(index = index, count = texts.size),
265- onCheckedChange = {},
266- checked = levels[index],
267- ) {
268- Text (label)
269- }
264+ FilterChip (
265+ // TODO remove elevation = null when https://youtrack.jetbrains.com/issue/CMP-2868 is fixed.
266+ elevation = null ,
267+ selected = levels[index],
268+ onClick = {},
269+ leadingIcon = {
270+ Icon (
271+ imageVector = if (levels[index]) Icons .Outlined .Key else Icons .Outlined .Error ,
272+ contentDescription = null
273+ )
274+ },
275+ label = { Text (label) }
276+ )
270277 }
271278 }
272279
0 commit comments