Skip to content

Commit

Permalink
Merge pull request #160 from niscy-eudiw/bugfix/fix_deferred_deferred…
Browse files Browse the repository at this point in the history
…_doc_ui_update

Recalculate style of ScalableText when textStyle changes
  • Loading branch information
stzouvaras authored Jul 29, 2024
2 parents 2d58d79 + 63c3c21 commit 36714e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fun ScalableText(
modifier: Modifier = Modifier,
maxLines: Int = 1,
) {
val style by remember(text) { mutableStateOf(textStyle) }
val style by remember(text, textStyle) { mutableStateOf(textStyle) }
var readyToDraw by remember(text) { mutableStateOf(false) }
var textSize by remember(text) { mutableStateOf(textStyle.fontSize) }

Expand Down

0 comments on commit 36714e5

Please sign in to comment.