-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update projects to Kotlin 2.0 #476
Conversation
# Conflicts: # CanonicalLayouts/list-detail-compose/app/src/main/java/com/example/listdetailcompose/ui/ListDetailSample.kt
) | ||
|
||
data class State(val key: String = data.keys.first(), val items: List<String> = data.values.first()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: it feels a bit weird that there are default parameters here, I wouldn't expect a State
data object like this one to have them and pulling from static resources. (Granted that this is static data which is unrealistic in the first plac, doesn't matter too much.
viewModel.supportingState.collect { items -> | ||
binding?.supportingView?.updateItems(items) | ||
viewModel.state.collect { state -> | ||
println("Add main content") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think this can be removed?
Subsequent to #475