Skip to content

Commit

Permalink
[fix] 챌린지 꽃선택 글씨 autosize적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ddyeon committed Nov 20, 2023
1 parent 6fb72ad commit 9b05904
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.mashup.twotoo.presenter.R
import com.mashup.twotoo.presenter.createChallenge.model.FlowerCardUiModel
import com.mashup.twotoo.presenter.designsystem.component.TwoTooImageView
import com.mashup.twotoo.presenter.designsystem.theme.MainPink
import com.mashup.twotoo.presenter.designsystem.theme.TwoTooTheme
import com.mashup.twotoo.presenter.model.FlowerName
import com.mashup.twotoo.presenter.util.AutoResizeText
import com.mashup.twotoo.presenter.util.FontSizeRange

@Composable
fun SelectFlowerLazyColumn(
Expand Down Expand Up @@ -108,11 +111,15 @@ fun FlowerCardItem(
color = TwoTooTheme.color.mainBrown,
textAlign = TextAlign.Center,
)
Text(
AutoResizeText(
text = stringResource(flowerCardModel.desc),
style = TwoTooTheme.typography.bodyNormal14,
color = TwoTooTheme.color.mainBrown,
textAlign = TextAlign.Center,
fontSizeRange = FontSizeRange(
max = 14.sp,
min = 12.sp,
),
)
}
}
Expand Down

0 comments on commit 9b05904

Please sign in to comment.