-
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
[REFACTOR/#212] 다이얼로그 / 리팩토링 #213
Conversation
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.
확인했습니다!!
with(viewModel){ | ||
updateScrapId(scrapId) | ||
updateScrapCancelDialogVisibility(true) | ||
} |
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.
요기 import 정리 부탁드려요!
@Composable | ||
fun TextStyle.getFixHeightByMaxLine(maxLine: Int): Dp = with(LocalDensity.current) { | ||
lineHeight.toDp() * maxLine | ||
} |
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 interactionSource = remember { MutableInteractionSource() } | ||
val isPressed by interactionSource.collectIsPressedAsState() |
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.
복붙 코드입니다ㅎㅎ 샤라웃 투 유빈
Image( | ||
painter = painterResource(id = R.drawable.ic_color_check), | ||
contentDescription = "" | ||
) |
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.
TerningImage 사용하시는 거 어떨까요!?
TerningImage( painter = R.drawable.ic_color_check, )
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.
지난 회의때 contentDescription을 통일하지 말고 직접 쓰자는 의견이 나왔었어요! 하드코딩을 하더라도 채워넣기로 정했습니다!! 8월 4주차 안드회의 보러가기
이 부분은 TerningImage는 안쓰더라도 고치긴 해야겠네요!!
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.
확인했습니다! 수고하셨어요!!
sealed class ScrapDialogSideEffect{ | ||
data class ShowToast(val message: Int): ScrapDialogSideEffect() | ||
data object DismissDialog : ScrapDialogSideEffect() |
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.
@StringRes 어노테이션 넣어주면 더 좋을 것 같아요!
}, | ||
verticalArrangementSpace = 6.dp, | ||
horizontalArrangementSpace = 0.dp, | ||
modifier = modifier.wrapContentSize() |
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.
여기 0dp가 기본 값이 아니라서 넣어준 건가용..?
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.
넵! RadioButtonGroups 컴포넌트를 만들 때 기본값을 안받도록 구현해서 직접 넣어줘야됩니다!!
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 swipeModifier = Modifier.pointerInput(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.
우왕 swipe 기능까지 구현하다니!! 짱이다👍🏻
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 internalBoxModifier = Modifier | ||
.padding(4.dp) | ||
.then( |
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.
오호!! 이렇게도 구현이 가능하군요!!!
# Conflicts: # feature/src/main/java/com/terning/feature/intern/component/InternInfoRow.kt
⛳️ Work Description
리팩토링
2차 스프린트
📸 Screenshot
스크랩 수정 (꽤 많이 수정됨)
default.mp4
스크랩 취소 (마진 정도만 바뀜)
default.mp4
📢 To Reviewers
잘 살펴보고 혹시 본인이 구현한 코드에 적용이 힘들 것 같다 싶으면 코멘트에 그렇게 생각한 부분과 이유를 적어주세요!! 전부 다 반영해서 수정하도록 할게요!
-------------- 9월 3일 변경사항 --------------