-
Notifications
You must be signed in to change notification settings - Fork 0
[TNT-272][TNT-275] ViewModel 내 Context 제거 및 약관 링크 수정 #135
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
Conversation
- context 대신 이미지 파일 전달
hoyahozz
left a comment
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.
고생하셨어요 ㅎㅎ 코멘트 확인 부탁드립니다! :)
| const val PRIVACY_POLICY_URL = "https://ymkim97.notion.site/1bcd727836a3813e9f5dd60ed9620612" | ||
| const val TERMS_OF_SERVICE_URL = "https://ymkim97.notion.site/1bcd727836a381c08c7bdf4d70c3639b" |
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 state by viewModel.uiState.collectAsStateWithLifecycle() | ||
| val dateFormatter = remember { DateFormatter() } | ||
|
|
||
| var imageFile by rememberSaveable { mutableStateOf<File?>(null) } |
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.
이미지가 선택될 때마다 File 형태로 만들어야 할까요 ?_?
저장 시, 즉 한 번만 File 형태로 만드는건 어떨까요?
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.
파일 변환 시 걸리는 시간을 고려해 미리 변환해둔건데, 다시 생각해보니 굳이 그럴 필요는 없을 것 같네요..!
저장 버튼 클릭 시, File 형태로 만들도록 수정하겠습니다!
| LaunchedEffect(completeState.value) { | ||
| if (completeState.value) { | ||
| val imageFile = withContext(Dispatchers.IO) { | ||
| state.image?.convertToAllowedImageFormat(context) | ||
| } | ||
| onNextClick(imageFile) | ||
| completeState.value = false | ||
| } | ||
| } |
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.
completeState 라는 중간 다리를 한 번 더 거쳐야 할까? 라는 생각이 쬐끔 드네요!
rememberCoroutineScope 를 활용해 onClick 발생 시 파일로 바로 변환 후 넘겨주는 방식은 어떨까요?_?
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.
넵 수정했습니다!
hoyahozz
left a comment
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.
LGTM 👍👍👍
📝 작업 내용
식단 기록,회원 가입취소와확인버튼의 동작이 반대로 매핑되어있는 문제를 발견해 수정했습니다.📸 실행 화면
약관
default.mp4
트레이너 회원가입
default.mp4
트레이니 회원가입
default.mp4
식단 기록
default.mp4
🙆🏻 리뷰 요청 사항
👀 레퍼런스