mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
feat: set default DropdownList width
This commit is contained in:
@@ -151,7 +151,7 @@ data class DropdownMenuStyle(
|
||||
fun DropdownList(
|
||||
expanded: Boolean,
|
||||
onExpandedChange: (Boolean) -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
modifier: Modifier = Modifier.width(DefaultDropdownListWidth),
|
||||
colors: DropdownListColors = DropdownList.colors,
|
||||
style: DropdownListStyle = DropdownList.style,
|
||||
menuColors: DropdownMenuColors = DropdownMenu.colors,
|
||||
@@ -564,6 +564,8 @@ private fun defaultDropdownListInactiveBorder() = BorderStroke(LocalSizes.curren
|
||||
@ReadOnlyComposable
|
||||
private fun defaultDropdownListActiveBorder() = BorderStroke(LocalSizes.current.borderSizePrimary, LocalColors.current.themePrimary)
|
||||
|
||||
private val DefaultDropdownListWidth = 150.dp
|
||||
|
||||
private val DefaultDropdownListMenuOffset = DpOffset((-10).dp, 10.dp)
|
||||
|
||||
private val DefaultMenuContentPadding = 16.dp
|
||||
|
Reference in New Issue
Block a user