UI: HomeView Bladdy 220 → 660dp (3×) + BoxWithConstraints 캡
빌드 114 적용: Home의 Bladdy 히어로를 3배 확대하고 BoxWithConstraints로 가용 영역의 90% 캡을 적용해 작은 화면에서 overflow가 나지 않도록 함. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import androidx.compose.foundation.interaction.MutableInteractionSource
|
|||||||
import androidx.compose.foundation.layout.*
|
import androidx.compose.foundation.layout.*
|
||||||
import androidx.compose.foundation.shape.CircleShape
|
import androidx.compose.foundation.shape.CircleShape
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
|
import androidx.compose.ui.unit.min
|
||||||
import androidx.compose.material3.Button
|
import androidx.compose.material3.Button
|
||||||
import androidx.compose.material3.ButtonDefaults
|
import androidx.compose.material3.ButtonDefaults
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
@@ -38,12 +39,16 @@ fun HomeView(appState: AppState) {
|
|||||||
) {
|
) {
|
||||||
Spacer(modifier = Modifier.weight(1f))
|
Spacer(modifier = Modifier.weight(1f))
|
||||||
|
|
||||||
Box(contentAlignment = Alignment.Center) {
|
// Bladdy hero — 3× 확대(660dp 목표), 화면 작을 땐 가용 영역의 90%까지 캡
|
||||||
BladdyIdleRiveView(size = 220.dp)
|
BoxWithConstraints(contentAlignment = Alignment.Center) {
|
||||||
|
val target = 660.dp
|
||||||
|
val cap = min(maxWidth, maxHeight) * 0.90f
|
||||||
|
val bladdySize = if (target < cap) target else cap
|
||||||
|
BladdyIdleRiveView(size = bladdySize)
|
||||||
// 투명 오버레이 — Rive AndroidView가 터치를 가로채므로 위에 덮어씀
|
// 투명 오버레이 — Rive AndroidView가 터치를 가로채므로 위에 덮어씀
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(220.dp)
|
.size(bladdySize)
|
||||||
.clickable(
|
.clickable(
|
||||||
indication = null,
|
indication = null,
|
||||||
interactionSource = remember { MutableInteractionSource() }
|
interactionSource = remember { MutableInteractionSource() }
|
||||||
|
|||||||
Reference in New Issue
Block a user