Will Johnson
02/25/2021, 7:56 PM@Composable
fun sliderDropDown(isExpanded: Boolean, onDismissRequest: () -> Unit) {
DropdownMenu(expanded = isExpanded, onDismissRequest) {
var value by remember { mutableStateOf(0f) }
Slider(
value,
{ value = it },
Modifier.width(200.dp)
)
}
}
but I keep getting the error
Intrinsic measurements are not currently supported by SubcomposeLayout
I'm able to use a Popup() to show the Slider, but I can't figure out a way to get the same anchoring behavior from the Popup that the DropDownMenu provides by default. Am I missing something when I use DropDownMenu? Is there a way to get the same anchoring effect with a Popup?
I'm using compose-0.3.0 and kotlin-1.4.30jim
02/25/2021, 8:43 PMjim
02/25/2021, 8:50 PMWill Johnson
02/26/2021, 12:19 AM