-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Feature] 사장님 가게 등록 바텀 시트 로직 적용 #540
base: develop
Are you sure you want to change the base?
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.
고생하셨습니다!
colors = ButtonDefaults.buttonColors(ColorPrimary), | ||
shape = RectangleShape, | ||
modifier = Modifier | ||
.height(38.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.
가능하면 컴포넌트들의 크기를 하드코딩하는건 지양하는게 좋을 것 같습니다!
(일부 기기에서는 화면이 비정상적으로 출력될 수 있습니다!)
, | ||
horizontalArrangement = Arrangement.Center | ||
){ | ||
Button( |
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.
같은 디자인의 버튼이 반복되네요!
별도의 composable을 만드는것도 좋을 것 같습니다!
.width(128.dp) | ||
) { | ||
Text( | ||
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.
strings.xml로 옮겨주세요!
fun Hours.toTimeString(): String { | ||
|
||
val hoursString: String = | ||
if (this.hours < 10) "0" + this.hours.toString() else this.hours.toString() |
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.format(null, "%02d", this.hours)
처럼 작성해도 좋을 것 같습니다!
|
||
infoString = if(isClosed) "$infoString : 휴무" | ||
else if (is24Hours) "$infoString : 24시간 운영" | ||
else infoString + " : ${openTime} ~ ${closeTime}" |
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.
"$infoString : ${openTime} ~ ${closeTime}"로 스타일을 통일하는게 좋을 것 같습니다!
){ | ||
Button( | ||
onClick = nextButtonClicked, | ||
colors = if(categoryIdIsValid)ButtonDefaults.buttonColors(ColorPrimary) else ButtonDefaults.buttonColors(ColorDisabledButton), |
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.
colors = ButtonDefaults.buttonColors(
backgroundColor = if (categoryIdIsValid) ColorPrimary else ColorDisabledButton
),
이게 훨씬 알아보기 쉬울 것 같습니다!
🐾 개요
🐳 상세 작업
📷 결과 화면