-
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
[UI/#60] 홈 뷰 / 홈 뷰 기본 UI 로직 구현 #68
Conversation
# Conflicts: # feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt
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.
홈뷰 로직 많이 복잡할텐데 너무 잘 구현했네요!! 서버 통신까지 달려봅시당~~
val userScrapState = viewModel.scrapData.collectAsState() | ||
val recommendInternData = viewModel.recommendInternData.collectAsState() |
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.
collectAsStateWithLifecycle
을 쓰자고 리더님께서 댓글을 다시기 전에 제가 답니다ㅎ
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.
그리고 상태 값 할당을 =
대신 by
로 하면 참조할 때 .value()
를 쓰지 않아도 된답니다~
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.
오호 찾아보니 collectAsStateWithLifecycle
이 더 안정적인 것 같네요..!! 감사합니다!!
private val _userName by mutableStateOf<UserNameState>( | ||
UserNameState( | ||
userName = "남지우자랑스러운티엘이되", | ||
internFilter = listOf(4, 1, 2024, 8) |
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.
이런 부분도 데이터클래스로 관리하는 편이 좋을 것 같아요!!
|
||
if (userNameState.internFilter != null && recommendInternData.value != null) { | ||
items(recommendInternData.value!!.size) { index -> | ||
ShowRecommendIntern(recommendInternData.value!![index]) |
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.
!!
은 지향하자던 리드님의 말씀이 생각나네요,,
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.
지양,,,합시다!!
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.
한국어 이슈ㅎㅎㅎㅎㅎ
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.
효비니 홈 뷰 파이팅탱팅이야 ㅜㅜ ㅜ !!!!!!
text = stringResource( | ||
id = R.string.home_today_title, | ||
if (userNameState.userName.length in 7..12) "\n" + userNameState.userName |
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.
이렇게 줄바꿈 하는 거 신기.,.,.
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.
이거 7..12 상수로 빼면 좋겠네요~
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.
천재만재 개발자 효빈언니,,
|
||
if (userNameState.internFilter != null && recommendInternData.value != null) { | ||
items(recommendInternData.value!!.size) { index -> | ||
ShowRecommendIntern(recommendInternData.value!![index]) |
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.
지양,,,합시다!!
.padding(top = 9.dp) | ||
.padding(horizontal = 24.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.
modifier = Modifier | |
.padding(top = 9.dp) | |
.padding(horizontal = 24.dp), | |
modifier = Modifier | |
.padding(top = 9.dp, horizontal = 24.dp) |
이렇게도 가능할 것 같네요..!!
⛳️ Work Description
📸 Screenshot
Screen_Recording_20240713_041200_Terning-Android.mp4
📢 To Reviewers