Announce auto fit text contents

This commit is contained in:
Aleksandras Kostarevas 2024-05-28 16:08:29 +03:00
parent 216e19f629
commit d993d4ece6

View File

@ -169,7 +169,7 @@ fun AutoFitText(
) { ) {
val measurer = rememberTextMeasurer() val measurer = rememberTextMeasurer()
Canvas(modifier = modifier.fillMaxSize()) { Canvas(modifier = modifier.fillMaxSize(), contentDescription = text) {
val measurement = measurer.measure( val measurement = measurer.measure(
text = AnnotatedString(text), text = AnnotatedString(text),
style = style, style = style,