🚀 Rounded corners for NavigationItem(NavigationBottomSheet)

* Added rounded corners for NavigationItem
This commit is contained in:
Acclorite 2024-10-12 13:51:39 +03:00
parent 7690cafec5
commit dcd2e2e69e

View file

@ -38,17 +38,17 @@ fun NavigationItem(
val shape = remember(position) { val shape = remember(position) {
when (position) { when (position) {
Position.TOP -> largeShape.copy( Position.TOP -> largeShape.copy(
bottomStart = CornerSize(0.dp), bottomStart = CornerSize(3.dp),
bottomEnd = CornerSize(0.dp) bottomEnd = CornerSize(3.dp)
) )
Position.CENTER -> RoundedCornerShape(0.dp) Position.CENTER -> RoundedCornerShape(3.dp)
Position.SOLO -> largeShape Position.SOLO -> largeShape
Position.BOTTOM -> largeShape.copy( Position.BOTTOM -> largeShape.copy(
topStart = CornerSize(0.dp), topStart = CornerSize(3.dp),
topEnd = CornerSize(0.dp) topEnd = CornerSize(3.dp)
) )
} }
} }