Skip to content
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

바텀 시트 스크롤 영역의 양단에 그라데이션 추가 #149

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

likppi10
Copy link
Collaborator

scrollState, background를 활용해서 적용

@likppi10 likppi10 added the design tasks related to design aspects of the project label Nov 21, 2023
@likppi10 likppi10 self-assigned this Nov 21, 2023
.width(52.dp)
.height(28.dp),
)
when {
Copy link
Collaborator

@easyhooon easyhooon Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

분기가 하나 뿐인데 when 문을 쓴 이유를 모르겠어 if 문으로 하면 되지 않을까?
개인적으로 when 문은 분기가 3개 이상일때 쓰는게 맞다고 생각함

onClick = { viewModel.openDeleteCellDialog(flag = !uiState.isDeleteCellDialogOpened) },
)
Spacer(modifier = Modifier.width(9.dp))
when {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

분기가 하나 뿐인데 when 문을 쓴 이유를 모르겠어 if 문으로 하면 되지 않을까?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다른 방식으로 하다가 바꾸는 것을 잊었어 굿

},
.align(Alignment.CenterHorizontally)
.padding(horizontal = 8.dp)
.imePadding(),
Copy link
Collaborator

@easyhooon easyhooon Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 imePadding과 관련된 Window Insets API 관련 이슈하나 올려놨는데 확인해주면 땡큐
#148

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 이슈대로 초기 설정을 해주지 않으면 발생하는 문제점이 있어?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.android.com/jetpack/compose/layouts/insets?hl=ko

문서에 따르면
'앱이 콘텐츠를 그리는 위치를 완전히 제어할 수 있도록 하려면 다음 설정 단계를 따르세요. 이러한 단계가 없으면 앱이 시스템 UI 뒤에 검은색 또는 단색을 그리거나 소프트웨어 키보드와 동기식으로 애니메이션을 적용하지 않을 수 있습니다.'
라고 적혀 있긴함

그런데 그새 초기 설정 코드가 변한거같네.. 문서가 업데이트 된듯 업데이트 된 버전으로 한번 더 확인해볼게

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"수 있습니다"의 경우를 모르겠으니까 모르고 무턱대고 하라는대로 하는 느낌이들어서 그럴바에는 안 쓰고도 한다 이런 기분..

viewModel.colorChanged(
mainColor = it.mainColor,
subColor = it.subColor,
datePickerScope = rememberCoroutineScope(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 파일 맨위에 선언된 scope 가져다 써도 될듯?

@@ -190,11 +193,12 @@ fun BandalartBottomSheet(
}

val focusManager = LocalFocusManager.current
val scrollState = rememberScrollState()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요런 변수들 맨 윗짝에 다른 변수들 선언된 곳에 같이 두는게 좋을듯? focusManager 도 그렇고

@easyhooon
Copy link
Collaborator

checkout 해서 확인해봤을 때 정상적으로 그라데이션이 보이는 것을 확인

@easyhooon
Copy link
Collaborator

image

@likppi10 likppi10 merged commit 616f00a into develop Nov 23, 2023
1 check passed
@likppi10 likppi10 deleted the feature/scrollgradation branch November 23, 2023 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design tasks related to design aspects of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants