Nat Strangerweather
06/04/2022, 1:20 PMNat Strangerweather
06/04/2022, 1:20 PMNat Strangerweather
06/04/2022, 1:23 PMderivedStateOf
I can't seem to access my value further down the line...Nat Strangerweather
06/04/2022, 1:24 PMval superscript =
SpanStyle(
baselineShift = BaselineShift.Superscript,
fontSize = 12.sp,
color = Color.White
)
[...]
Text(
text = buildAnnotatedString {
append(data.name)
withStyle(superscript) {
append(" ${data.value}")
}
}, style = TextStyle(Color.White, fontSize = 20.sp),
fontWeight = FontWeight.ExtraBold
)
Saiedmomen
06/04/2022, 5:05 PMNat Strangerweather
06/04/2022, 5:06 PMAlbert Chang
06/04/2022, 5:29 PMMainPiece
is recomposed, all its children are recomposed (and some of the recompositions may be skipped) so what you should look is MainPiece
.Nat Strangerweather
06/04/2022, 5:37 PMStylianos Gakis
06/04/2022, 6:23 PMNat Strangerweather
06/04/2022, 6:26 PM