-
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
Composable 재사용 #329
Composable 재사용 #329
Conversation
fun BackIconButton( | ||
modifier: Modifier = Modifier, | ||
onClick: () -> Unit, | ||
iconColor: Color = Color.Black, | ||
) { | ||
IconButton( | ||
modifier = modifier, | ||
onClick = onClick, | ||
) { | ||
Icon( | ||
painter = painterResource(id = R.drawable.ic_back), | ||
contentDescription = null, | ||
tint = iconColor, | ||
) | ||
} | ||
} |
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.
버튼을 따로 component로 만들어서 재사용할 수있는건 좋은거 같아요!
그렇다면 Icon의 painter부분도 인자로 받아서, 하는건 어떨까요??
다른 FloatingAction 버튼도용
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.
각 버튼의 기능을 명확하게 구분하고 가독성면에서도 더 좋다고 생각해서 저렇게 했습니다.
ktlint는 이제 빼야할거 같긴 하네요 ㅠ |
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.
옹..! MSButtion, MSFloatingButton, MSIconButton, MSPreview가 새로 생겼군요..!
확실이 이렇게 컴포넌트가 정해져있는게 디자인 면에서 통일성이 좋을 것 같아요.
컴포즈 좋네요!!
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.
그런데 혹시 whatsnew-ko-KR 파일과 buildgradle 파일도 바꼈는데, 이부분은 왜 바뀌었는지 궁금해요!
서버 변경으로 핫픽스 과정에서 포함된거 같네요. 수정하도록 하겠습니다. |
관련 이슈
작업한 내용