Updated on 2026-08-14

This commit is contained in:
Tangem 2024-02-29 15:28:48 +03:00
parent 1bcc834e7e
commit 0a2b586b6e

View file

@ -1,6 +1,7 @@
package com.tangem.core.ui.components
import androidx.annotation.FloatRange
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.material.LocalTextStyle
import androidx.compose.material.Text
import androidx.compose.runtime.*
@ -84,9 +85,11 @@ fun ResizableText(
var readyToDraw by remember { mutableStateOf(value = false) }
Text(
modifier = modifier.drawWithContent {
if (readyToDraw) drawContent()
},
modifier = modifier
.drawWithContent {
if (readyToDraw) drawContent()
}
.wrapContentHeight(),
text = text,
color = color,
fontSize = fontSize,