Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal object ApplicationConstants {
const val TARGET_SDK = 35
const val COMPILE_SDK = 35
const val VERSION_CODE = 1
const val VERSION_NAME = "1.0"
const val VERSION_NAME = "1.0.0"
const val JAVA_VERSION_INT = 17
val javaVersion = JavaVersion.VERSION_17
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
Expand All @@ -42,6 +43,8 @@ fun EmotionStep(
state: RecordRegisterUiState,
modifier: Modifier = Modifier,
) {
val emotionPairs = remember(state.emotionTags) { state.emotionTags.chunked(2) }

Box(
modifier = modifier
.fillMaxSize()
Expand Down Expand Up @@ -74,7 +77,6 @@ fun EmotionStep(
Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing10))
}

val emotionPairs = state.emotionTags.chunked(2)
items(emotionPairs) { pair ->
Row(
modifier = Modifier.fillMaxWidth(),
Expand Down
Loading