-
Notifications
You must be signed in to change notification settings - Fork 190
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
Create search screen #278
Create search screen #278
Conversation
# Conflicts: # app-android/src/main/java/io/github/droidkaigi/confsched2022/KaigiApp.kt # feature-sessions/src/main/java/io/github/droidkaigi/confsched2022/feature/sessions/SessionsNavGraph.kt
👀 |
|
@takahirom |
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.
I wrote small comments. But it is almost LGTM! I heard you are a beginner. But your code is clean. 👍
|
||
@OptIn(ExperimentalMaterial3Api::class, ExperimentalComposeUiApi::class) | ||
@Composable | ||
private fun SearchTextField(searchWord: String, updateSearchWord: (String) -> 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.
We use on〜 for state hoisting lambda variables. Because it is event. So How about changing onSearchWordChange from updateSearchWord?
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.
I changed method name.
} | ||
|
||
@Composable | ||
fun SearchScreen( |
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.
Can you add a Preview function? If we have that, it will be easy to improve it 🙏
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.
I added preview:pray:
onItemClick: () -> Unit, | ||
onBookMarkClick: () -> Unit, | ||
) { | ||
var contentHeight = 100.dp |
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.
I don't think this is needed. But it is ok now. We can do it later 👍
@takahirom |
@takahirom |
I recommend that you run |
@takahirom |
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.
LGTM 👍 Thank you for tackling this issue!
) { | ||
Text( | ||
text = timeTable.title.currentLangTitle, | ||
onTextLayout = { |
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.
ここ
Issue
create Search Screen without design #172
Overview (Required)
Links
Screenshot