Skip to content

Commit

Permalink
[FEATURE] #125 : 설문 응답 화면 애니메이션 보완
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 16, 2024
1 parent ef61f25 commit 6cbec6c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ internal fun SurveyAnswerForm(
)

AnimatedContent(
targetState = surveyQuestion.questionType,
targetState = questionNumber,
transitionSpec = {
if (targetState.ordinal > initialState.ordinal) {
if (targetState > initialState) {
slideInHorizontally(initialOffsetX = { it }) + fadeIn() togetherWith
slideOutHorizontally(targetOffsetX = { -it }) + fadeOut()
} else {
slideInHorizontally(initialOffsetX = { -it }) + fadeIn() togetherWith
slideOutHorizontally(targetOffsetX = { it }) + fadeOut()
}
},
) { questionType ->
Column() {
when (questionType) {
) { questionNumber ->
Column {
when (surveyForm.surveyQuestionList[questionNumber].questionType) {
QuestionType.SUBJECTIVE -> {
SubjectiveSurveyForm(
questionTitle = surveyQuestion.questionTitle,
Expand Down

0 comments on commit 6cbec6c

Please sign in to comment.