-
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/#37] 캘린더뷰 / 스크랩 목록 뷰 #54
Conversation
# Conflicts: # core/src/main/res/values/strings.xml
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.
캘린더를 완벽하게 구현해낸 갓석준을 위한 개큰 박수 보내립니다
모두 박수!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
AsyncImage( | ||
model = ImageRequest.Builder(LocalContext.current) | ||
.data(imageUrl) | ||
.build(), | ||
contentDescription = title, | ||
Modifier | ||
.fillMaxHeight() | ||
.aspectRatio(1f) | ||
.clip(RoundedCornerShape(5.dp)) | ||
.background(color = Grey300) | ||
) |
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.fillMaxHeight(), | ||
verticalAlignment = Alignment.Bottom | ||
) { |
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 변수 안 써주는 이유가 있나용?
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
를 적용하는 편입니다!!
val selectedDate by viewModel.selectedDate.collectAsStateWithLifecycle() | ||
val state by remember { mutableStateOf(CalendarState()) } |
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.
오 굿!!!
//To be erased in future | ||
val mockScrapList: List<List<Scrap>> | ||
get() { |
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.
future가 오는 순간까지 숨참을게요
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.
저 지금 숨 참는 중..!
isFromList = true, | ||
noScrapScreen = {}) | ||
|
||
|
||
if (scrapList[day].isNotEmpty()) { |
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.
와 캘린더 구현한거 진짜 대박이네요 역시 최고야,,,⭐ 아이템도 감사해요 야무지게 써보겠습니다😎
.data(imageUrl) | ||
.build(), | ||
contentDescription = title, | ||
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.
위에 있는 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.
전 최상위 컴포저블에만 modifier를 적용하는 편입니다!!
fun LocalDate.getDateStringInKorean(): String = | ||
"${monthValue}월 ${dayOfMonth}일 ${dayOfWeek.getDisplayName(TextStyle.FULL, Locale.KOREAN)}" |
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.
와 한글로 바꿔주는 센스 미쳤네요
snapshotFlow { listState.firstVisibleItemIndex } | ||
.distinctUntilChanged() |
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 selectedDate by viewModel.selectedDate.collectAsStateWithLifecycle() | ||
val state by remember { mutableStateOf(CalendarState()) } | ||
|
||
val listState = rememberLazyListState( |
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.
오!! 새로운거 알아갑니다!!
BackHandler { | ||
if (selectedDate.isEnabled) { | ||
viewModel.updateSelectedDate(selectedDate.selectedDate) | ||
} | ||
} |
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.
새로운거 알아갑니다..!!
Spacer( | ||
modifier = Modifier | ||
.fillMaxWidth() | ||
.height(1.dp) | ||
.background(color = Grey200) | ||
) |
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.
divider을 사용하지 않고 spacer를 사용한 이유가 궁금해요!!
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.
오 새로운 정보 감사합니당~!!
//To be erased in future | ||
val mockScrapList: List<List<Scrap>> | ||
get() { |
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 = 42.dp) | ||
.fillMaxWidth(), | ||
text = "선택하신 날짜에 지원 마감인 스크랩 공고가 없어요.", |
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.
마침표 빼주세요.... string 분리해주세요....
) | ||
} | ||
val topModifier = if(!isFromList) { | ||
Modifier.fillMaxWidth().padding(horizontal = 24.dp).verticalScroll(scrollState) |
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.
캘린더찐완성너무잘하네용.!!!!!!!!!!
sizeTransform = SizeTransform(clip = true) | ||
) | ||
}, | ||
label = "List Transition" |
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.
실수임다ㅎ
⛳️ Work Description
📸 Screenshot
화면 구현 및 전환
2.mp4
공통 공고 컴포넌트 구현
📢 To Reviewers
복잡한 커밋과 PR을 날리게 된 점 굉장히 죄송합니다🙇
캘린더 구현 관련
공고 컴포넌트 관련