Skip to content

Commit

Permalink
Replace material 3 Divider with Divider in JetpackDropdownMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed Dec 11, 2023
1 parent f1f793f commit b88b584
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Divider
import androidx.compose.material3.DividerDefaults
import androidx.compose.material.Divider
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -48,13 +47,7 @@ fun JetpackDropdownMenu(menuItems: List<MenuElementData>, defaultItem: MenuEleme
is MenuElementData.Item -> Item(element, onMenuItemClick)
}
if (element.hasDivider) {
Divider(
color = if (isLightTheme()) {
DividerDefaults.color
} else {
DividerDefaults.color.copy(alpha = 0.5f)
}
)
Divider()
}
}
}
Expand Down

0 comments on commit b88b584

Please sign in to comment.