-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I want to base a parameter off a specific condition in compose, such as if its dark theme or light theme.
val uiTheme by parameter(
if (isDarkTheme()) {
listOf("foo")
} else {
listOf(
"barA",
"barB",
"barN"
)
},
)results in only the first parameter list being used.
Ideally the parameter list would try to map the current value to the new value list. if its not matching, then default back to the first selection.
TBSten
Metadata
Metadata
Assignees
Labels
No labels