Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding top bar multi selection examples #387

Merged
merged 4 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remember some vals
  • Loading branch information
jakeroseman committed Oct 29, 2024
commit 39c1d5d4c1a7989c48f0625dd7bd6f53ed6dc955
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ private fun AppBarSelectionActionsPreview() {
private fun AppBarMultiSelectionExample(
modifier: Modifier = Modifier,
) {
val listItems = listOf(1, 2, 3, 4, 5, 6)
val listItems by remember { mutableStateOf(listOf(1, 2, 3, 4, 5, 6)) }
var selectedItems by rememberSaveable { mutableStateOf(setOf<Int>()) }

Scaffold(
Expand Down