mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Destructuring declaration
This commit is contained in:
parent
6170726749
commit
4fc4603cf0
@ -71,12 +71,12 @@ fun AlertDialogWithList(
|
|||||||
Text(supportText)
|
Text(supportText)
|
||||||
}
|
}
|
||||||
LazyColumn {
|
LazyColumn {
|
||||||
items(listItems.toList()) {
|
items(listItems.toList()) { (option, label) ->
|
||||||
CustomDialogContentListItem(
|
CustomDialogContentListItem(
|
||||||
label = stringResource(it.second),
|
label = stringResource(label),
|
||||||
selected = selectedItemIndex == it.first,
|
selected = selectedItemIndex == option,
|
||||||
onClick = {
|
onClick = {
|
||||||
selectAction(it.first)
|
selectAction(option)
|
||||||
dismissAction()
|
dismissAction()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user