-
Notifications
You must be signed in to change notification settings - Fork 2
[feat/#27] 홈 컴포넌트 수정 및 뷰수정 #29
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
Conversation
JiWoo1261
left a comment
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.
수고햇습니당~~
sonms
left a comment
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, 재사용 컴포저블 관련해서 보완할 점이 보입니다! 홧팅홧팅!
| verticalArrangement = Arrangement.spacedBy(31.dp), | ||
| modifier = Modifier | ||
| .fillMaxWidth() | ||
| .fillMaxWidth() |
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.
진짜 왜이렇게했지..
| } | ||
|
|
||
| @Composable | ||
| internal fun DaytimeCard( |
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.
internal 같은 경우 접근제한자로 같은 모듈에서만 사용할 수 있도록 하는데 현재 저희 프로젝트 구조상 app 모듈 하나만 사용하는 구조라 큰 의미는 없을 것 같은데 넣으신 이유가 있으실까요?
| @Composable | ||
| internal fun DaytimeCard( | ||
| daytime: String, | ||
| daystate: String, |
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.
재사용 가능한 Composable함수를 만들 때 Modifier를 인자로 받는 방식을 준수해주세요요ㅛㅇ
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.
넹....
| ) { | ||
| Column ( | ||
| color = PawKeyTheme.colors.white2, | ||
| shape = RoundedCornerShape(12.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.
background의 shape는 배경은 둥글게 보이지만 그 안에 있는 내용이 값을 넘어설 경우 여전히 표시될 수 있습니다 이를 방지하고자 clip을 사용하는데 현재 상황은 의도된 것인가요?
| shape = RoundedCornerShape(12.dp) | ||
| ), | ||
| ) { | ||
| Column() |
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.
안쓰는 () 역시 가독성을 위해 제거해주세요
| fontSize = 24.sp | ||
| ), | ||
| modifier = modifier.padding(start = 4.dp) | ||
| modifier = modifier.padding(start = 4.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.
보통 최상위(현재는 Row)에서 한 번 modifier를 사용해서 구현하고 나머지 안쪽 부분은 Modifier를 사용해서 구현하면 됩니다. 이러한 이유는 제가 나중에 질문할 것이니 공부해두세여ㅛ ㅎ
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( | ||
| text=rating, | ||
| text = rating, | ||
| style = PawKeyTheme.typography.head22B.copy( |
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.
이거 여전히 copy 사용 중인데 아직 타이포그래피 적용이 안되서 그런 건가요?
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.
네...ㅜ
| var isLocationMenuVisible by mutableStateOf(false) | ||
| private set | ||
|
|
||
| fun toggleLocationMenu() { | ||
| isLocationMenuVisible = !isLocationMenuVisible | ||
| } | ||
|
|
||
| fun hideLocationMenu() { | ||
| isLocationMenuVisible = 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.
자 이 부분 state 로 관리해봅시다 현재 dummy 쪽을 보고 공부하시면 좋을 것 같습니다~
|
|
||
| fun navigateCourse(navOptions: NavOptions? = null) { | ||
| navController.navigatePet(navOptions = navOptions) | ||
| } | ||
|
|
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.
MainTapRoute로 모두 MainNavigator가 graph를 연결 중이라 navigateNext용으로 navigate를 만들 필요가 없습니다. 삭제하셔도 무방합니다.
| paddingValues = paddingValues, | ||
| navigateUp = navigator.navController::navigateUp, | ||
| navigateNext = navigator.navController::navigateUp, | ||
| navigateNext = navigator::navigateCourse, |
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.
마찬가지~
name: pull_request_template
about: pr 생성용 템플릿입니다~
title: ''
labels: ''
assignees: ''
ISSUE
❗ WORK DESCRIPTIONAdd commentMore actions
📸 SCREENSHOT
📢 TO REVIEWERS