🚀 Rounded corners for NavigationItem(NavigationBottomSheet)
* Added rounded corners for NavigationItem
This commit is contained in:
parent
7690cafec5
commit
dcd2e2e69e
1 changed files with 5 additions and 5 deletions
|
|
@ -38,17 +38,17 @@ fun NavigationItem(
|
|||
val shape = remember(position) {
|
||||
when (position) {
|
||||
Position.TOP -> largeShape.copy(
|
||||
bottomStart = CornerSize(0.dp),
|
||||
bottomEnd = CornerSize(0.dp)
|
||||
bottomStart = CornerSize(3.dp),
|
||||
bottomEnd = CornerSize(3.dp)
|
||||
)
|
||||
|
||||
Position.CENTER -> RoundedCornerShape(0.dp)
|
||||
Position.CENTER -> RoundedCornerShape(3.dp)
|
||||
|
||||
Position.SOLO -> largeShape
|
||||
|
||||
Position.BOTTOM -> largeShape.copy(
|
||||
topStart = CornerSize(0.dp),
|
||||
topEnd = CornerSize(0.dp)
|
||||
topStart = CornerSize(3.dp),
|
||||
topEnd = CornerSize(3.dp)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue