-
Notifications
You must be signed in to change notification settings - Fork 4
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
[MOB-2068] Switch 컴포넌트 구현 #80
Conversation
Box( | ||
modifier = modifier | ||
.padding(2.dp) | ||
.clip(CircleShape) | ||
.requiredSize(width = SwitchWidth, height = 28.dp) | ||
.clickable( |
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 대신에 실제 차지하는 너비를 넣고 싶었는데 SwitchWidth를 베이스로 계산해야하는 공식이 있어서 외부 padding을 넣었습니다 😢
(외부 padding을 사이즈에 포함시키면 계산식이 좀 더 난잡해져서..)
bezier/src/main/java/io/channel/bezier/compose/component/switch/source/BezierSwitchControl.kt
Show resolved
Hide resolved
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.
상태 변경기다릴때까지 잠시 disable되는건 이후에 작업되는걸까요?
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.
만약 하게된다면, 논의 후에 아예 다른 pr로 작업 할게요
Switch 컴포넌트를 구현합니다.
코드 의도를 간략하게 남겨보면
Control은 좀 더 순수한 단위라고 생각되어서 UI를 표시하는 것 이외의 로직을 넣지 않으려 했습니다