Skip to content
Draft
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,12 +7,14 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.withStyle
Expand Down Expand Up @@ -83,14 +85,16 @@ private fun OnboardingEndScreen(
.padding(top = 2.dp)
)

Spacer(modifier = Modifier.height(30.dp))
Spacer(modifier = Modifier.weight(66f))
Copy link

@coderabbitai coderabbitai bot Sep 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Modifier.weight 임포트 누락으로 컴파일 실패

현재 androidx.compose.foundation.layout.weight 임포트가 없어 빌드가 실패합니다. 아래 임포트를 추가해 주세요. 또한 가중치 값은 비율만 의미하므로 66f/79f처럼 큰 값 대신 2f/3f 등 간결한 비율로 표현해도 동일하게 동작합니다.

@@
-import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.weight

Also applies to: 97-97

🤖 Prompt for AI Agents
In
app/src/main/java/com/spoony/spoony/presentation/auth/onboarding/OnboardingEndScreen.kt
around lines 88 and 97, the build fails because
androidx.compose.foundation.layout.weight is not imported and the Spacer weight
values use unnecessarily large absolute numbers; add the missing import for
Modifier.weight (androidx.compose.foundation.layout.weight) and replace the
large float weights (e.g., 66f and 13f) with simplified proportional values (for
example 2f and 1f or 2f/3f equivalents) so the layout behavior remains the same
and the file compiles.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

말이돼?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. 현재 코드에서 Spacer들이 Column 안에 있기 때문에 추가 import 없이도 정상적으로 컴파일됩니다.

제가 불필요한 import 오류를 지적한 점 죄송합니다. 코드는 현재 상태로 문제없이 동작할 것입니다.

🐰💭
╭─────╮
│ 실수 │
│했네요│
╰─────╯


LottieAnimation(
composition = rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.spoony_onboarding)).value,
iterations = LottieConstants.IterateForever
iterations = LottieConstants.IterateForever,
modifier = Modifier
.clip(RoundedCornerShape(8.dp))
)

Spacer(modifier = Modifier.weight(1f))
Spacer(modifier = Modifier.weight(79f))

Text(
text = "내 프로필 정보는 마이페이지에서 변경할 수 있어요",
Expand Down
Binary file modified app/src/main/res/raw/spoony_onboarding.lottie
Binary file not shown.