-
Notifications
You must be signed in to change notification settings - Fork 1
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
KMM search android #18
Conversation
kmm/kmm-feed/src/commonMain/kotlin/com/gchristov/newsfeed/kmmfeed/SearchWidgetState.kt
Show resolved
Hide resolved
...n-compose/src/main/java/com/gchristov/newsfeed/commoncompose/elements/search/AppSearchBar.kt
Show resolved
Hide resolved
Remaining TODO:
|
5ff5b69
to
c8e0fcb
Compare
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.
Looks awesome! 🚀
_state.postValue(newState) | ||
// postValue vs setValue | ||
// see: https://stackoverflow.com/questions/51299641/difference-of-setvalue-postvalue-in-mutablelivedata/51299672#51299672 | ||
_state.setValue(newState, false) |
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.
What is the false
here referring to? Might be nice to set argument names here so that it's clear.
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.
Will do in next PR
onTextChange: (String) -> Unit, | ||
onCloseClicked: () -> Unit, |
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.
Nitpick: We could prefix this with onSearch
so that it's clear what they refer to.
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.
Next PR will tackle this too
Feel free to delete irrelevant sections or add new ones as you see fit.
What does this pull request change?
Describe your proposed changes, including any necessary context.
Demo
Optional but helps to have a quick visual, if any.
Screenshots
Optional but helps to have a quick visual, if any.
How is this change tested?
How did you ensure your code works? e.g. unit tests, UI tests, manually
Our testing guide
Writing Kotlin Multiplatform tests