improvement: Add a visual indicator to an active product container
This commit is contained in:
parent
3fa71f0e28
commit
1d0e3cfa0a
@ -324,6 +324,21 @@ private fun SettingProductItem(
|
|||||||
price = {
|
price = {
|
||||||
Text(product.price)
|
Text(product.price)
|
||||||
},
|
},
|
||||||
|
content = {
|
||||||
|
when (status) {
|
||||||
|
is Product.Status.Inactive -> {
|
||||||
|
// Do nothing
|
||||||
|
}
|
||||||
|
is Product.Status.Active -> {
|
||||||
|
FlatTextFieldBadge(
|
||||||
|
modifier = Modifier,
|
||||||
|
backgroundColor = MaterialTheme.colorScheme.primary,
|
||||||
|
text = stringResource(Res.string.pref_item_premium_status_active),
|
||||||
|
icon = Icons.Outlined.KeyguardPremium,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user