Change chip appearance and spacing
This commit is contained in:
parent
6caef6e692
commit
dc492cf2c8
@ -27,7 +27,7 @@ fun Chip(
|
|||||||
shape = RoundedCornerShape(8.dp),
|
shape = RoundedCornerShape(8.dp),
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
color = Color.Transparent,
|
color = Color.Transparent,
|
||||||
border = BorderStroke(1.dp, MaterialTheme.colorScheme.outline),
|
border = BorderStroke(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.17f)),
|
||||||
contentColor = MaterialTheme.colorScheme.onSurface,
|
contentColor = MaterialTheme.colorScheme.onSurface,
|
||||||
onClick = onClick
|
onClick = onClick
|
||||||
) {
|
) {
|
||||||
|
|||||||
@ -82,7 +82,7 @@ fun AppItem(
|
|||||||
.padding(top = 16.dp)
|
.padding(top = 16.dp)
|
||||||
.animateContentSize(),
|
.animateContentSize(),
|
||||||
mainAxisSpacing = 16.dp,
|
mainAxisSpacing = 16.dp,
|
||||||
crossAxisSpacing = 8.dp
|
crossAxisSpacing = 0.dp
|
||||||
) {
|
) {
|
||||||
val notifications by viewModel.notifications.collectAsState(initial = emptyList())
|
val notifications by viewModel.notifications.collectAsState(initial = emptyList())
|
||||||
|
|
||||||
|
|||||||
@ -106,7 +106,7 @@ fun ContactItem(
|
|||||||
|
|
||||||
if (contact.phones.isNotEmpty()) {
|
if (contact.phones.isNotEmpty()) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Rounded.Call, contentDescription = null)
|
Icon(Icons.Rounded.Call, contentDescription = null)
|
||||||
@ -130,7 +130,7 @@ fun ContactItem(
|
|||||||
}
|
}
|
||||||
if (contact.emails.isNotEmpty()) {
|
if (contact.emails.isNotEmpty()) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Rounded.Email, contentDescription = null)
|
Icon(Icons.Rounded.Email, contentDescription = null)
|
||||||
@ -154,7 +154,7 @@ fun ContactItem(
|
|||||||
}
|
}
|
||||||
if (contact.telegram.isNotEmpty()) {
|
if (contact.telegram.isNotEmpty()) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Rounded.Telegram, contentDescription = null)
|
Icon(Icons.Rounded.Telegram, contentDescription = null)
|
||||||
@ -178,7 +178,7 @@ fun ContactItem(
|
|||||||
}
|
}
|
||||||
if (contact.whatsapp.isNotEmpty()) {
|
if (contact.whatsapp.isNotEmpty()) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Rounded.WhatsApp, contentDescription = null)
|
Icon(Icons.Rounded.WhatsApp, contentDescription = null)
|
||||||
@ -202,7 +202,7 @@ fun ContactItem(
|
|||||||
}
|
}
|
||||||
if (contact.postals.isNotEmpty()) {
|
if (contact.postals.isNotEmpty()) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(vertical = 12.dp, horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Rounded.Place, contentDescription = null)
|
Icon(Icons.Rounded.Place, contentDescription = null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user