constrainAs(title_textRef, { end.linkTo(parent...
# compose
b
constrainAs(title_textRef, { end.linkTo(parent.end, ~dimensionResource~(id = R.dimen.dp_16)) } How can I reference dimensionResource inside of non-composable code block?
c
Im affraid the only way to do it, is to save the value into a
val
before the constrainAs call, and use that value istead of calling
~dimensionResource~
inside
👍 1