-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Home] 후원사 카드 내부 로고 배치 수정 #219
Conversation
충돌 발생 원인 |
feature/home/src/main/java/com/droidknights/app2023/feature/home/SponsorCard.kt
Outdated
Show resolved
Hide resolved
end = 24.dp | ||
), | ||
sponsors = goldSponsors | ||
) |
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.
후원사가 4개 고정 배치 기준으로 만들어진 시안이라 SponsorLogo의 size를 fix하지 않고, 부모 영역에 맞춰 늘리는 것이 적절해보입니다. SponsorLogo 컴포저블의 .size(84.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.
후원사가 4개 고정 배치 기준으로 만들어진 시안이라 SponsorLogo의 size를 fix하지 않고, 부모 영역에 맞춰 늘리는 것이 적절해보입니다. SponsorLogo 컴포저블의
.size(84.dp)
를 제거해주세요!
단순히 .size(84.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.
.padding( | ||
start = 69.dp, | ||
end = 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.
만약 데이터가 스크롤이 가능한 정도로 충분히 많다면 오른쪽으로 스크롤을 하게 되면 어떻게 될까요?
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.
아마 하단의 LazyRow만 scroll한 영역이 왼쪽부분이 줄어든체로 스크롤이 될껍니다.
val scrollState = rememberLazyListState() | ||
val lifecycleOwner = LocalLifecycleOwner.current | ||
val platinumSponsors = sponsors.filter { it.grade == Sponsor.Grade.PLATINUM } | ||
val goldSponsors = sponsors.filter { it.grade == Sponsor.Grade.GOLD } |
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.
Recomposition 이 발생하면 이 코드는 어떻게 동작할까요?
적절한 방법을 활용해주세요.
remember 처리
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.
9e5bbcb
rememberUpdateState 처리하였습니다.
# Conflicts: # feature/home/src/main/java/com/droidknights/app2023/feature/home/SponsorCard.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.
고생하셨습니다.
다음 작업에 앞서 현재PR은 우선 병합하도록 하겠습니다
Issue
Overview (Required)
Screenshot